[leafnode-list] Re: [PATCH] Random initial delay for fetchnews
Reiner Steib
reinersteib+gmane at imap.cc
Thu Jul 20 11:11:24 CEST 2006
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.
Bye, Reiner.
--
,,,
(o o)
---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/
More information about the leafnode-list
mailing list