in reply to read directory, fork processes

Monitor Directory modification and List of directory (3 ways) might be helpful. If I was to try and come up with something from scratch, I would first try something with lsof, to detect when a file closes. I'm not saying it is the best solution, but I would setup a set of timers, as in Roll your own Event-loop , and be stuffing filenames into hashes and checking their status in a timer, then do whatever.

I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku

Replies are listed 'Best First'.
Re^2: read directory, fork processes
by KevinBr (Acolyte) on Feb 24, 2010 at 15:24 UTC
    Thanks to all for the suggestions! I will post a response when I have implemented a solution.