Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: Using perl as a cron script?

by Anonymous Monk
on Feb 05, 2021 at 01:29 UTC ( #11127912=note: print w/replies, xml ) Need Help??


in reply to Re: Using perl as a cron script?
in thread Using perl as a cron script?

Thanks DamnDirtyApe, very useful script. I have a question, if the program sleep for 60 seconds, what prevents to run the same progran more than one time (since "hour%3 ==0" conditions is testing every 60 seconds ) ?

Replies are listed 'Best First'.
Re^3: Using perl as a cron script?
by LanX (Cardinal) on Feb 05, 2021 at 03:17 UTC
    This post is almost 20 years old and DamnDirtyApe hasn't been here for 12 years.

    But you are right, you need to check the minute too.

    And you should be aware that this is a hack, rounding errors could easily lead to skipped jobs.

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11127912]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2021-04-18 12:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?