problem with lftp exit code

Edward Borst <[email protected]> Wed, 11 Feb 2015 07:50:15 +0000
Newsgroups gmane.network.lftp.user
Message-ID <3FAA6F5BD1B206479FBA15A60EDE2D24DB56A57D@EXCHSTORE01.benelux.intra.corp>
Hi,

I'm using lftp to receive files, but sometimes the files do not exist.
Therefore I'm using this command:

lftp -e "glob --exist /tmp/mtc/otp*.* && mget -E /tmp/mtc/otp*.* -O /<SOMEDIR>;quit" -u <USER> sftp://<SERVER>

The problem I have is that the exitcode is still 1 when no file exist.


How can I solve this?

Regards,
Edward

_______________________________________________
lftp mailing list
[email protected]
http://univ.uniyar.ac.ru/mailman/listinfo/lftp