in reply to executing perl script at a certain time/day
The simplest way would be to do read the time through the localtime(time) function. I don't totally agree with using cron or AT. Do something like this, and your script will stay cross-platform (something I need).
... while(1) { sleep(60); @time = localtime(time); if(($time[2] == 10) && ($time[1] == 0) { #do what ever you want to do at 10am } }
I hope this helps..
Thanks!
#!/massyn.pl
You never know important a backup is until the day you need it.
|
|---|