Is it possible to skip a scheduled cron job?

Vu Pham vu
Wed Mar 21 23:34:51 PDT 2007


On Thu, 2007-03-22 at 14:18 +1100, James McDonald wrote:
>  I have a cron job which runs at x time every week night is there any 
> way of skipping one instance of execution?
> 

I got to similar problem. I created two other cron jobs that run one
minute before and one minute after the time I want to skip the original
job. The job at x-1m renames the original_job to temp_job, and the job
at x+1m renames the temp_job to original_job. This makes the cron fails
executing the original job at that time.

Vu




More information about the Linux-users mailing list