in reply to Kill a script at a certain time
Or you could try something like this in your script (assuming it is a perl script):
Ps: I never remember if 4pm == 04.00 hr or 16.00 hr.my $top_at_hour = 4; while ((localtime(time))[2] < $stop_at_hour) { # do some specific stuff here.. } exit;
-- Joost downtime n. The period during which a system is error-free and immune from user input.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Kill a script at a certain time
by jasonk (Parson) on Feb 17, 2003 at 18:13 UTC | |
by Joost (Canon) on Feb 20, 2003 at 12:55 UTC |