Re: Run for a certain time
Nathan Sutton <[email protected]> Wed, 4 May 2016 14:11:58 -0700
| Newsgroups | gmane.network.lftp.user |
|---|---|
| Message-ID | <CAAoRkve-sGPkO7xCLWak7FyWbX1yGMU6GH2Z91uR4tLDHMktyQ@mail.gmail.com> |
You can run lftp with timeout https://www.gnu.org/software/coreutils/manual/html_node/timeout-invocation.html and then use the -c option on the internal lftp command to continue where it left off. So, something like: timeout 6h lftp -e 'get -c "https://example.com/my_file.txt";quit' On Wed, May 4, 2016 at 10:27 AM, <[email protected]> wrote: > > Hi all. > LFTP is working well and I run it nightly in some cron jobs. However I > would like the jobs to exit after say 6 hours and then when it fires up > again the next night to pick up from where it left off. Is that possible? > > > _______________________________________________ > lftp mailing list > [email protected] > http://univ.uniyar.ac.ru/mailman/listinfo/lftp > _______________________________________________ lftp mailing list [email protected] http://univ.uniyar.ac.ru/mailman/listinfo/lftp