Re: Is a large crontab file OK?

From: Bill (bverzal_at_komatsuna.com)
Date: 03/31/04


Date: 30 Mar 2004 19:42:13 -0800

bfogarty@gaports.com (bfogartyjr) wrote in message news:<858fdc5d.0403301426.5e546d30@posting.google.com>...
> A user at my company has a set of jobs she wants executed Monday
> through Friday. In her crontab file, instead of setting scheduling
> parameters as
>
> 40 15 * * 1-5 ............. she creates a separate line for each
> day:
>
> 40 15 * * 1 .............
> 40 15 * * 2 .............
> 40 15 * * 3 .............
> 40 15 * * 4 .............
> 40 15 * * 5 .............
>
> She does this to make it easier to prevent jobs from running on
> holidays. Right now she comments out lines that represent the day of
> the week when the holiday falls, instead of changing the "1-5"
> parameter to bypass the holiday. Her crontab file has grown to 50,000
> bytes and includes hundreds of extra lines because of this scheduling
> method.
>
> My question is, are these hundreds of extra lines creating much of a
> burden for the cron daemon? If changing to file to go to a "1-5"
> format reduces its size from 50,000 to 25,000 bytes, will this free
> significant resources on my machine?
>
> Nothing I have read shows exactly how cron process a crontabs file.
> Does it wake up and read through each crontabs file once a minute?
>
> Thank you,
> Bill Fogarty

It is more of a headache for you than for the OS. I know not of any
limits, but I'd watch out for the 64K limit you are approaching. Ya
never know.

BV



Relevant Pages

  • Is a large crontab file OK?
    ... A user at my company has a set of jobs she wants executed Monday ... In her crontab file, instead of setting scheduling ... parameter to bypass the holiday. ...
    (comp.unix.aix)
  • Re: Is a large crontab file OK?
    ... > A user at my company has a set of jobs she wants executed Monday ... In her crontab file, instead of setting scheduling ... > parameter to bypass the holiday. ... > Nothing I have read shows exactly how cron process a crontabs file. ...
    (comp.unix.aix)