lftp works, but exits with a non-success status

Nathan Stiles <[email protected]> Wed, 15 Apr 2015 16:58:15 -0400
Newsgroups gmane.network.lftp.user
Message-ID <CAHrE8OrQALqi2KGFA6sXb7S=jqvR01vo_z5_5S+fwZ+ZkoRGQw@mail.gmail.com>
To whomever it concerns,

     I have a script that uploads some files for me, and then I check
lftp's exit status for success.  It normally works fine, but for some
reason it's returning an exit code of 1, instead of 0 in this script.  I've
attached a log of me running lftp in debug mode.

Here is my .lftp/rc

> ​set net:timeout 5
> set net:max-retries 3
> set net:reconnect-interval-base 5
> set xfer:clobber on


Here is the command I'm using​

>    lftp -du $FTP_USER,$FTP_PASSWORD sftp://$FTP_HOST 2>&1 \
>       <<eot |tee -a $OUTPUT_LOG
>       cd "$target_dir"
>       mput "$file"
>       quit
> eot



Why am I getting exit code 1, when the file is uploaded correctly?

-- 
Very Respectfully
​ and Thanks​
,
Nathan Stiles, MedHOK Automation Engineer




-------------------------------------------------------------------------
This message was secured by ZixCorp(R).

_______________________________________________
lftp mailing list
[email protected]
http://univ.uniyar.ac.ru/mailman/listinfo/lftp
GOLDCOASTLOGIN_GCHP-Barcoding-Xerox_Print-FTPPut_19443038.log (application/octet-stream, 476.1 KB) - not displayed