Alternative to Crontab
Bill Campbell
linux-sxs at celestial.com
Fri Nov 23 10:33:08 PST 2007
On Thu, Nov 22, 2007, jenix wrote:
>
>Hi, my ISP does not allow cron to be run less than every 5 minutes. I need to
>fetch a (dynamic) file from a remote site every minute or whenever it
>changes. What alternatives are available to achieve this?
One could write a simple python or perl script that did this in a
loop using sleep() to do the times.
#!/usr/bin/env python
from time import sleep
while True:
do_something()
sleep(1)
# end of script
Bill
--
INTERNET: bill at celestial.com Bill Campbell; Celestial Software LLC
URL: http://www.celestial.com/ PO Box 820; 6641 E. Mercer Way
FAX: (206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676
Our Foreign dealings are an Open Book, generally a Check Book.
Will Rogers
More information about the Linux-users
mailing list