I am writing a script that will do certain tasks. There may be 5 , 8 or 10 tasks. The script is run via a cron job on an hourly basis.
So if my $task1 is run at 9am, $task2 at 10am and $task5 at 1pm, how do I restart the loop again?
I do not want to hard wire the hours, because the number of tasks caould be different.
I assume it has to be tied to time somehow, though. Otherwise how would it know where to restart next hour. Not sure how to write this