[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Best practices for cron jobs?



Duncan Findlay wrote:
> Adding a sleep $[ $RANDOM % 60 ] is probably not a good idea as it will
> hold up all the other cronjobs that should be run.
>   
How about using a sub shell, so that other cron jobs can continue?
(
    sleep $[ $RANDOM % 60 ]
    sa-update
) &

(or something like this)

Cheers

Jan-Pascal


Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: