in reply to remove crontab entries
If you need cron to remove the job itself just set up your crontab like this ...$ crontab -l 5 5 * * * touch cron_ran_`date| tr ' :' '_'` 10 10 * * * doSomethingOrOther $ crontab -l | grep -v touch | crontab $ crontab -l 10 10 * * * doSomethingOrOther
5 5 * * * touch cron_ran_`date| tr ' :' '_'` && crontab -l | grep -v t +ouch | crontab 10 10 * * * doSomethingOrOther
| Plankton: 1% Evil, 99% Hot Gas. |
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: remove crontab entries
by Jonathan (Curate) on Jul 23, 2004 at 15:08 UTC |