Skip to main content

Configuring CRON To Run At Random Times

Comments

4 comments

  • sysnishit
    Hello, * */6 * * * sleep $[ ( $RANDOM % 60 ) + 1 ]m; /path/to/script or command This cron will execute command/script every after 6 hrs and RANDOM min (from 1 to 60)
    0
  • Moobs
    Hello, * */6 * * * sleep $[ ( $RANDOM % 60 ) + 1 ]m; /path/to/script or command This cron will execute command/script every after 6 hrs and RANDOM min (from 1 to 60)

    Thanks so much! This is exactly what I've been looking for and I'll follow up in the next day or so once everything is ready for the cron :)
    0
  • sysnishit
    Hello, You are most welcome :)
    0
  • cPanelLauren
    Thank you @sysnishit for providing a solution!
    0

Please sign in to leave a comment.