'file changed'-event
- From: Michael Goerz <news2132@xxxxxxxxxxxxxxx>
- Date: Wed, 28 Dec 2005 16:57:43 +0100
Hi,
I'm trying to execute a sub whenever a certain file on the disk changes.
Currently, I'm doing this with an infinite loop that checks the modify
time (stat("$file"))[9]. While this works in principle, the infinite
loop drives the CPU crazy and speeds up the fan (very annoying).
Can I implement this with an event-based approach that doesn't drive up
my CPU? How?
Thanks,
Michael Goerz
.
- Follow-Ups:
- Re: 'file changed'-event
- From: Larry
- Re: 'file changed'-event
- From: Paul Lalli
- Re: 'file changed'-event
- From: Anno Siegel
- Re: 'file changed'-event
- Prev by Date: Re: Sub routine location
- Next by Date: Re: 'file changed'-event
- Previous by thread: Command line options: using an [option: parameter] without a parameter passed to it
- Next by thread: Re: 'file changed'-event
- Index(es):
Relevant Pages
|