Basic cron job question

software development

#1

Hi all.

Is there a delay when setting up a new cron job?

I set up a job to run at short intervals but it doesn’t start right away. I’m wondering if that’s because of my script or if there is a scheduling system that keeps the job from going into effect right away.

Thanks for any help.


#2

Excerpt from man cron:

"cron checks each minute to see if its spool directory’s modtime (or the modtime on /etc/crontab) has changed, and if it has, cron will then examine the modtime on all crontabs and reload those which have changed. "

Files have to get copied, etc., so there is a small delay. I usually allow a few minutes before I expect changes to take effect.

----------
[color=#00CC00]ANONYMOUS0 => Max Discount[/color], [color=#6600CC]ANONYMOUS2 => Max Discount less $1[/color] or Cut the code, [color=#CC0000]it’s their birthday:[/color] [color=#00CC00]9999 => $99.99 Off[/color]