in reply to Script to poll every hour
or something like that, depending on your version.Start > Programs > Accessories > System Tools > Task Scheduler
That is, of course, not the question you asked.
To run a script and then pause it until 20 past the hour, you should use localtime to get the minutes (my $min = (localtime)[1];) and then sleep 60 * the mod of the difference between that and the target (sleep(60 * ((20 - $min) % 60))). If you need better precision, you can include seconds (or even milliseconds) in that calculation.
#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Script to poll every hour
by sidsinha (Acolyte) on Jul 22, 2013 at 00:19 UTC |