[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[leafnode-list] Re: [PATCH] Random initial delay for fetchnews
Reiner Steib <reinersteib+gmane@xxxxxxx> 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.
God bless you.
leafnode-list mailing list