Link to home
Start Free TrialLog in
Avatar of CRISTIANO_CORRADI
CRISTIANO_CORRADI

asked on

Is there any way to insert an event in the crontab, and to cut off that row after that event is fired?

Good morning!

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?
ASKER CERTIFIED SOLUTION
Avatar of sunnycoder
sunnycoder
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of CRISTIANO_CORRADI
CRISTIANO_CORRADI

ASKER

All your solutions are very interesting.  Thanks to all, I'll split the points.
Thank you very much for your interesting suggestions! ;-)