in reply to Re^2: Tracking actual time spent sleeping: Is this bad coding?
in thread Tracking actual time spent sleeping: Is this bad coding?

I'm unfamiliar with any start-up costs of cron. I use it quite frequently on most boxes I administer. Would you mind going into detail? Perhaps after your explanation I'll change my ways.

- Justin
  • Comment on Re^3: Tracking actual time spent sleeping: Is this bad coding?

Replies are listed 'Best First'.
Re^4: Tracking actual time spent sleeping: Is this bad coding?
by Random_Walk (Prior) on Feb 02, 2005 at 15:52 UTC

    Hi jpk236,

    It is not a cost of cron but the costs of starting my process that is high. My Process has to load and compile about 700 regular expressions each time it starts. Why do this every N minutes when you can do it once and hold the results in memory ?

    I do like the look of Schedule::Cron and it looks like it would provide a nice solution to the OP's problem, friedo++

    Cheers,
    R.

    Pereant, qui ante nos nostra dixerunt!
Re^4: Tracking actual time spent sleeping: Is this bad coding?
by vek (Prior) on Feb 02, 2005 at 16:54 UTC

    There are no start-up costs with cron itself. The start-up costs referred to in this thread are associated with the Perl code and would be the same whether the program is ran from cron or from the command line (e.g compiling modules, connecting to databases etc).

    -- vek --