in reply to Crontab Alternatives
Now you have a couple of problems running this on a remote host. 1. You may have to daemonize it, ( see Proc::Daemon ) because once you log out, your program will need to be able to run in the background). 2. Your sysadmin may not like it. Maybe ask your sysadmin what he/she suggests? You may have the "at" command, instead of cron.#!/usr/bin/perl while(1) { sleep(60); @time = localtime(time); if(($time[2] == 10) && ($time[1] == 0) { #do what ever you want to do at 10am } }
Also check out Schedule::ByClock
|
|---|