Does anyone have a clever idea on how to remove an entry from cron once a job has run ?
What I want to achieve is to schedule a job via cron and then either remove or hash it once it has run.
Easiest way would be to run the job once via cron and set a file (temp file). The next time the job runs from cron the script should llok for the flag and not run....then you can remove from cron at your lesure....
Try using "at" - it lets you schedule a job to be run ONCE, and with a little creativity, you can have it reschedule itself so that it effectively works like cron.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.