Is there any way to insert an event in the crontab, and to cut off that row after that event is fired?
Posted on 2008-10-09
Often, when I have the need to launch a Unix Korn Shell script (which has a duration of about 15 hours), of course I call it from crontab, for example in the crontab file I add the following row:
30 18 * * * $HOME/system/startscript/aggregate.ksh
The risk is that I forget to remove that row after the 18:30 (hour in which the script aggregate.ksh is launched), so that after 24 hours the script will be executed again!
Is there any way to make that row disappear after that the event is fired?