Lftp
Posts  1 - 1  of  1
keithBremer
I'm using lftp in a cron job to upload a file to a server. I want the lftp command to exit with a non-zero status if any errors are encountered. I've used the following settings:

set cmd:fail-exit true
set cmd:verify-path true
set net:max-retries 3
set xfer:disk-full-fatal true

There are some errors that do cause lftp to exit as expected but a large number don't. For example, if the login is incorrect or is rejected for some reason lftp stays active after a failed attempt to use put. There are many others - I've not attempted to find them all...

Have I missed something? Does anyone have any ideas for how to fix this?

Many thanks in advance,
Keith.
Save
Cancel
Reply
 
x
OK