Re: lftp Exit code when using mget

Alexander Lukyanov <[email protected]>
Newsgroups gmane.network.lftp.user
Message-ID <CANnoEwrBo2HrGM-cL6c6rfoOz72kL9hPan31542+oPSZXz2z5w@mail.gmail.com>
I could add an option for mget, but also it is also possible to use mirror
command instead. Please consider if it is really possible in your case.


2014-04-15 17:33 GMT+04:00 <[email protected]>:

>  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. Is this possible to implement somehow?
>
>
>
> Thanks and regards,
>
> Tilo
>
>
>
> _______________________________________________
> lftp mailing list
> [email protected]
> http://univ.uniyar.ac.ru/mailman/listinfo/lftp
>
>


-- 
   Alexander.

_______________________________________________
lftp mailing list
[email protected]
http://univ.uniyar.ac.ru/mailman/listinfo/lftp
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.