[lftp] problem with lftp exit code

2015-02-11 Thread Edward Borst
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

Re: [lftp] problem with lftp exit code

2015-02-11 Thread Edward Borst
[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]

Re: [lftp] problem with lftp exit code

2015-02-15 Thread Edward Borst
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

Re: [lftp] problem with lftp exit code

2015-02-16 Thread Edward Borst
...@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