in reply to Safe to run a constant loop?

Unfortunately, I can't wait for one whole minute. 20-25 seconds would be the longest I could wait. As far as I know cron only allows scheduling in a minimum of 1 minute.

Replies are listed 'Best First'.
Re: Re: Safe to run a constant loop?
by Biker (Priest) on Jan 15, 2002 at 13:30 UTC

    I'm not sure if this is valid in your case or not. But anyway...

    I have reasons to run stuff several times per minute. And further more, at specific seconds in that minute.

    I have found the Schedule::ByClock.pm module very helpful for this.

    "Livet är hårt" sa bonden.
    "Grymt" sa grisen...

Re: Re: Safe to run a constant loop?
by redsquirrel (Hermit) on Jan 15, 2002 at 01:35 UTC
    This could be a really Bad Idea, but it popped into my head anyway...

    How about using cron to call the script every minute, and have the script perform the file check/delete a couple times over a forty second period?

    I'd be interested in what other monks think about this solution.