in reply to Re: WinDoze NT Automation Question
in thread WinDoze NT Automation Question

But what if it takes an hour to run the script? It'll run an hour later every day...

---
A fair fight is a sign of poor planning.

Replies are listed 'Best First'.
Re: Re: Re: WinDoze NT Automation Question
by $code or die (Deacon) on Apr 25, 2001 at 02:57 UTC
    Not that I would EVER do this for something that runs once a day - you can always do this:
    while (1) { my $loop_start = time; #.... code my $sleep_time = 86400 - (time - $loop_start); sleep ($sleep_time); }


    TIMTOWTDI!

    $ perldoc perldoc
Re: Re: Re: WinDoze NT Automation Question
by LordAvatar (Acolyte) on Apr 25, 2001 at 08:13 UTC

    I suppose if that were the case you could adjust the
    sleep time back one hour (i.e) 60*60*23 instead of 60*60*24
    to account for the hour it takes the program
    to run. Just a guess off the top of my head...
    -LordAvatar