[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[leafnode-list] Re: [PATCH] Random initial delay for fetchnews
On Thu, Jul 20 2006, Samuel Tardieu wrote:
> I've added a "-i seconds" option to fetchnews, which waits for up-to
> "seconds" seconds before trying to connect to upstream servers. Now,
> my crontab entry reads:
> */5 * * * * /usr/sbin/fetchnews -i 60
> which adds a random initial delay between 0 and 60 seconds.
What's wrong with the following crontab entry?
| */5 * * * * sleep $(($RANDOM % 60)); /usr/sbin/fetchnews
BTW, I think fetching so often is not very friendly, but of course
your provider may allow it.
---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/
leafnode-list mailing list