T***@Bertelsmann.de
2012-10-25 15:13:13 UTC
Hi,
how can we poll a remote server using "mget *" for files, to not fail if there are no files available?
"set cmd:fail-exit yes;" is always set in our environment to detect any issues occurring, but in this case we only want that "mget *" is ok, when no files are available. Any other error during "mget *" should cause lftp to end with RC != 0.
Regards,
Tilo
how can we poll a remote server using "mget *" for files, to not fail if there are no files available?
"set cmd:fail-exit yes;" is always set in our environment to detect any issues occurring, but in this case we only want that "mget *" is ok, when no files are available. Any other error during "mget *" should cause lftp to end with RC != 0.
Regards,
Tilo