" />

mikerochford.com Being technical

22Sep/100

Run a command randomly

I wanted to run a command randomly everyday. Here is a one liner cron that I created.


echo "" | at now + `awk -vu=30 'BEGIN { srand(); printf( "%0.0f\n", rand() * u ); }'` minutes

Comments (0) Trackbacks (0)

No comments yet.


Leave a comment

No trackbacks yet.