in reply to script to add to crontab
In other words, instead of using the crontab file to run a given script at regular intervals, use "at" to start the job the first time, and craft the script that "at" is running so that it schedules itself to run again after the desired length of time.at now + $interval this_same_script
Running "at" at the beginning of the script being scheduled will make sure that the schedule doesn't slip too much with each successive run.
|
|---|