Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Scheduling a shell script to run every wednesday at 10 AM with perl without cron

by SuicideJunkie (Vicar)
on Sep 10, 2018 at 14:06 UTC ( [id://1222047]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
            sleepUntil(
                nextTimeOccurence({time=>'3:15', weekdays=>'MTWRF'}), 
                sub {printf"%s - Next telemetry pull in %s.\r", scalar loc
    +altime, englishTime(shift)}
                );
            print "\n";
    
  2. or download this
    sub sleepUntil
    {
    ...
        $time = int($time/24);
        return "$time day".($time==1?'':'s');
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2024-04-23 23:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found