Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^2: Using perl as a cron script?

by Anonymous Monk
on Feb 05, 2021 at 06:29 UTC ( [id://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 (Saint) on Feb 05, 2021 at 08: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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11127912]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (2)
As of 2024-04-26 07:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found