|go ahead... be a heretic|
Re: how to permanently monitor a directoryby BrowserUk (Pope)
|on Aug 14, 2003 at 14:43 UTC||Need Help??|
If your running Win32 then Win32::ChangeNotify makes this very easy.
You'll need control-break rather than ^C to interupt this script.
To extending this to monitor the whole subtree, change the 0 in the new() call to 1, though you'll need some extra work to find out what changed where.
I'm not aware of a similar mechanism under *nix.
Examine what is said, not who speaks."Efficiency is intelligent laziness." -David Dunham
"When I'm working on a problem, I never think about beauty. I think only how to solve the problem. But when I have finished, if the solution is not beautiful, I know it is wrong." -Richard Buckminster Fuller
If I understand your problem, I can solve it! Of course, the same can be said for you.