my $script = 'foobar.pl'; my $sleep_time = 60*60; # sleep for 1 hour. while (1) { system("foobar.pl"); sleep($sleep_time); }