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. |
In reply to Re: remove crontab entries
by Plankton
in thread remove crontab entries
by nmete
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |