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.
In reply to Re: executing perl script at a certain time/day
by Massyn
in thread executing perl script at a certain time/day
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |