Re: problem with lftp exit code
Mattias Bergvall <[email protected]> Wed, 11 Feb 2015 08:28:15 +0000
| Newsgroups | gmane.network.lftp.user |
|---|---|
| Message-ID | <51A9F5F7696A7E42990A88B466B4947E2CBEB96A@ccdex001> |
Perhaps a " || true " could be useful to implement? Regards Mattias Bergvall From: lftp [mailto:[email protected]] On Behalf Of Edward Borst Sent: onsdag den 11 februari 2015 08:50 To: '[email protected]' Subject: [lftp] problem with lftp exit code 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
smime.p7s
(application/pkcs7-signature, 4.2 KB) - not displayed