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
/;quit" -u sftp://
The problem I have is that the exitcode is still 1 when no file exist.
How can I solve this?
Re
[mailto:mattias.bergv...@evry.com]
Sent: woensdag 11 februari 2015 9:28
To: Edward Borst; 'lftp@uniyar.ac.ru'
Subject: RE: [lftp] problem with lftp exit code
Perhaps a " || true " could be useful to implement?
Regards
Mattias Bergvall
From: lftp [mailto:lftp-boun...@uniyar.ac.ru]
Someone else an idea to solve this?
I expected that if I use glob -exist the exit code would be 0.
From: lftp [mailto:lftp-boun...@uniyar.ac.ru] On Behalf Of Edward Borst
Sent: woensdag 11 februari 2015 14:47
To: 'lftp@uniyar.ac.ru'
Subject: Re: [lftp] problem with lftp exit code
...@netis.ru]
Sent: maandag 16 februari 2015 13:15
To: Edward Borst
Cc: 'lftp@uniyar.ac.ru'
Subject: Re: [lftp] problem with lftp exit code
On Mon, Feb 16, 2015 at 07:12:35AM +0000, Edward Borst wrote:
> Someone else an idea to solve this?
> I expected that if I use glob -exist the ex