You could try something like this (pseudocode):
done=false;
while(!done){
$start_time=time();
$time=time();
while($time < $start_time + (5*60*60)){
# Note: the 5 minute calculation is based on the tickcount
# method used by older versions of other languages
# If perl counts by milliseconds (does it?), change the last 60
# to 1000...
$time=time();
}
# Call the method that does the parcing here.
# If you want it to stop the wait-->parce-->wait cycle (doesn't
# sound like you do), add in code to change the value of $done.
}
----- Original Message -----
From: "Yacketta, Ronald" <[EMAIL PROTECTED]>
To: "Beginners (E-mail)" <[EMAIL PROTECTED]>
Sent: Wednesday, August 08, 2001 5:43 AM
Subject: a little help here please
> I have a script that does a bunch of things, one of which parses a large
> amount of log files
> every cycle through the script, what would I need todo to the script to
only
> parse the logfiles every 5 minutes ; yet not impacting the rest of the
> script?
>
> Regards,
> Ron
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]