Help for this page

Select Code to Download


  1. or download this
    my $script = 'foobar.pl';
    my $sleep_time = 60*60; # sleep for 1 hour.
    ...
      system("foobar.pl");
      sleep($sleep_time);
    }
    
  2. or download this
     use Schedule::Cron;
    
    ...
    
     # Run scheduler 
     $cron->run(detach=>1);