Forum OpenACS Development: Re: New Specification for Cron Package

Collapse
Posted by Philip Z on
A related question I sent to a different forum earlier today:

http://www.linuxquestions.org/questions/showthread.php?s=&threadid=164050

Hallo,

Is there a way to postpone cron jobs?

When I open up my laptop every morning (I usually leave it suspended), cron launches the jobs that should have run overnight (like updatedb). Sometimes the extra load is not a problem, other times I'd like to issue a command to postpone the jobs for an hour or two. Does this exist?

At the moment, I have to kill the job off and the job gets run next day.

Thanks for any advice!

Z.

Collapse
Posted by Tom Jackson on

Philip, are you speaking of unix cron? This thread was about the cronjob package, not related to unix cron. However, to suspend a job, which runs under your user account, do:

crontab -e 

You will probably be in vi to edit, so 'arrow' down to the line you want to suspend and then type 'i', then '#', to comment out the line. then type ':wq' to save and exit.

In the cronjob package you can also disable a cronjob.