Discussion:
Error codes
MrBajs
2013-07-15 00:31:04 UTC
Permalink
I'd like to use the exit code to see if there's something wrong with the transfer, but when I echo $? I get code 1 although everything went well with the sync. Why isn't it 0?

I'm also wondering what "source: Is a directory" means. It comes up every time I launch lftp. Is this perhaps why I'm getting an exit code of 1 instead of 0?

Best Regards
Bajs
Alexander V. Lukyanov
2013-08-16 11:05:29 UTC
Permalink
Post by MrBajs
I'd like to use the exit code to see if there's something wrong with the transfer, but when I echo $? I get code 1 although everything went well with the sync. Why isn't it 0?
I'm also wondering what "source: Is a directory" means. It comes up every time I launch lftp. Is this perhaps why I'm getting an exit code of 1 instead of 0?
Please describe with more details which commands you run in lftp.
What is the last command? What are your settings in lftp ("set" command)?

--
Alexander.

Loading...