rspan

usage: rspan interval file [arguments ...]

rspan is a randomized time span creator, a program that upon execution creates a random timeout based on given interval. When the timeout ends, the given file will get executed with potentially given arguments.

Installation

Edit config.mk to match your local setup (rspan is installed into the /usr/local namespace by default), then simply enter the following command to install (if necessary as root):

 make clean install

Example usage of rspan

One common usage area of rspan is together with the crontab

 # surprise Gorac some time in the morning
 30 6 * * * su -c 'rspan 120 surprise' gorac
 # turn Steves lights off some time in the evening
 0 18 * * * su -c 'rspan 180 lights --off' steve

get source here.