Re: Ways to know number of new files after mirror
Franck Eyraud <[email protected]> Fri, 26 Dec 2014 17:36:03 +0100
| Newsgroups | gmane.network.lftp.user |
|---|---|
| Message-ID | <[email protected]> |
Hi Akshay, What I usually do is to use the --verbose option which outputs the modifications list (which could be use for further process on downloaded files), and empty string in case of no modification. Could be also adapted to your needs. Merry Christmas! Franck Il giorno 24/dic/2014 13:41, "Alexander Lukyanov" <[email protected] <mailto:[email protected]>> ha scritto: I don't know if it would be useful, but mirror has --on-change option to run a script after mirroring which produced a change. 2014-09-23 15:03 GMT+04:00 akshay gupta <[email protected] <mailto:[email protected]>>: Hi All, I want to know how many new files are added after mirror command has completed. I am going to run the lftp command through java code using runtime exec() call. Does lftp command provide some special exit status code when mirror succeeds but no new files are added. if not can you suggest some way of knowing when mirror command produces no new files. Thanks, Akshay -- Alexander. _______________________________________________ lftp mailing list [email protected] <mailto:[email protected]> http://univ.uniyar.ac.ru/mailman/listinfo/lftp _______________________________________________ lftp mailing list [email protected] http://univ.uniyar.ac.ru/mailman/listinfo/lftp