[lftp] Existance check of file pattern

Tilo.Muetze at bertelsmann.de Tilo.Muetze at bertelsmann.de
Fri Aug 26 13:03:22 MSK 2011


Hi,
would it be possible to extend the possibilities of the lftp find command, so that it works for more than one file. E.g.:
find *.txt
should end ok, when it finds one or more files matching *.txt, and ends not ok, if there is no file matching *.txt.

Regards,
Tilo

Von: lftp-bounces at univ.uniyar.ac.ru [mailto:lftp-bounces at univ.uniyar.ac.ru] Im Auftrag von Tilo.Muetze at bertelsmann.de
Gesendet: Montag, 18. Juli 2011 15:48
An: lftp at uniyar.ac.ru
Betreff: [lftp] Existance check of file pattern

Hi,
does anybody know, how-to check if remote files are existing (more than one file, so a pattern like *.txt should work) and if not exit lftp with a specific exit code?

I've already tried cls, ls, glob and find but did not had any success yet.

Thanks,
Tilo


--
This message has been scanned for viruses and
dangerous content by MailScanner<http://www.mailscanner.info/>, and is
believed to be clean.

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://univ.uniyar.ac.ru/pipermail/lftp/attachments/20110826/d1f8142e/attachment.html>


More information about the lftp mailing list