http://www.perlmonks.org?node_id=174202


in reply to Watching a driectory for change

This is an interesting problem, and some people have already mentioned Win32::ChangeModify. I am wondering if there is a module for *nix that does the same thing, or is there a way to query the operating system to have the same effect?

Anyway, no drug, not even alcohol, causes the fundamental ills of society. If we're looking for the source of our troubles, we shouldn't test people for drugs, we should test them for stupidity, ignorance, greed and love of power.

--P. J. O'Rourke

Replies are listed 'Best First'.
Re: Re: Watching a driectory for change
by paulbort (Hermit) on Jun 13, 2002 at 16:04 UTC
    I just noticed last night that there's a daemon in RH 7.3 that does file change notifications called sgi_fam. I haven't looked in to it, just saw it when I was cleaning up an install.

    Spring: Forces, Coiled Again!
Re: Re: Watching a driectory for change
by kappa (Chaplain) on Jun 14, 2002 at 06:45 UTC
    There's a kqueue facility in FreeBSD which could be used for such a task. Unfortunately, I see only a python interface wrapper for it :(