Forum Moderators: phranque

Message Too Old, No Replies

cron job execution at random intervals

         

catch2948

5:49 am on Jul 15, 2005 (gmt 0)

10+ Year Member



Can anyone tell me if it is possible to execute cron jobs at random intervals (eg. once a week, on a random day, or once a day, at a random hour)? I know that it is possible to do by setting up multiple cron jobs, but is there a way to do it otherwise ... I'm trying to to some random sampling on my log files, without having to do full log file parsing everytime ...

Thanks in advance ...

dcrombie

10:42 am on Jul 15, 2005 (gmt 0)



Cron jobs, by definition, occur at regular intervals. What you can do though is use cron.daily or cron.weekly to call a script that _internally_ decides whether it's going to run or not.

catch2948

2:34 pm on Jul 15, 2005 (gmt 0)

10+ Year Member



Good deal ... I'll look moreso into those ... Thanks