[leafnode-list] Re: [PATCH] Random initial delay for fetchnews
Lloyd Zusman
ljz at asfast.com
Thu Jul 20 11:17:40 CEST 2006
Reiner Steib <reinersteib+gmane at imap.cc> writes:
> 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
I believe that it will only work if your shell is bash or zsh.
> BTW, I think fetching so often is not very friendly, but of course
> your provider may allow it.
>
> Bye, Reiner.
--
Lloyd Zusman
ljz at asfast.com
God bless you.
More information about the leafnode-list
mailing list