> -----Original Message-----
> From: Yacketta, Ronald [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 08, 2001 11:44 AM
> To: Beginners (E-mail)
> 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?
You've gotten some suggestions already, but a couple of other ideas to
consider are:
1. fork and then grok the logfiles in the child, with a sleep(300) between
each iteration.
2. use alarm() and a SIGALRM handler set a flag telling your main script
that it's time to process logfiles.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]