Support

Why does lftp exit with 0 here when it found no file to upload ?

[cfern...@redford dev_test]$ /usr/bin/lftp -e 'set cmd:verbose yes; set
net:max-retries 3; mput SCEA_FR_up.csv; exit;' -u user,xx sftp://
my.host.com:23
SCEA_FR_up.csv: no files found
[cfern...@redford dev_test]$ echo $?
0
[cfern...@redford dev_test]$

How can I capture the correct exit code from mput ?

Thanks for your help
-- 
stucky

Reply via email to