Re: Monitor a directory for file creation

2008-01-25 Thread Charlie Farinella
On Thursday 24 January 2008, [EMAIL PROTECTED] wrote: > Charlie Farinella <[EMAIL PROTECTED]> writes: > > > On Wednesday 16 January 2008, Peter Scott wrote: > >> On Tue, 15 Jan 2008 15:13:29 -0500, Charlie Farinella wrote: > >> > I need to monitor a directory and when a file is created, modify it

Re: Monitor a directory for file creation

2008-01-24 Thread Jenda Krynicky
From: [EMAIL PROTECTED] > Charlie Farinella <[EMAIL PROTECTED]> writes: > > > On Wednesday 16 January 2008, Peter Scott wrote: > >> On Tue, 15 Jan 2008 15:13:29 -0500, Charlie Farinella wrote: > >> > I need to monitor a directory and when a file is created, modify it. > >> > I've been playing wi

Re: Monitor a directory for file creation

2008-01-24 Thread reader
Charlie Farinella <[EMAIL PROTECTED]> writes: > On Wednesday 16 January 2008, Peter Scott wrote: >> On Tue, 15 Jan 2008 15:13:29 -0500, Charlie Farinella wrote: >> > I need to monitor a directory and when a file is created, modify it. >> > I've been playing with Linux::Inotify2 and may be able t

Re: Monitor a directory for file creation

2008-01-23 Thread alwaysonnet
I've set of questions. 1) You want a perl script to monitor a particular directory 2) if so, we can make this script as a daemon so that it monitors the folder for the file. here is the sample code... #!/usr/bin/perl use strict; while (1) { # Monitor the folder here if (-e "/pat

Re: Monitor a directory for file creation

2008-01-16 Thread Charlie Farinella
On Wednesday 16 January 2008, Peter Scott wrote: > On Tue, 15 Jan 2008 15:13:29 -0500, Charlie Farinella wrote: > > I need to monitor a directory and when a file is created, modify it. > > I've been playing with Linux::Inotify2 and may be able to make that > > work, but am wondering if this is s

Re: Monitor a directory for file creation

2008-01-16 Thread Peter Scott
On Tue, 15 Jan 2008 15:13:29 -0500, Charlie Farinella wrote: > I need to monitor a directory and when a file is created, modify it. > I've been playing with Linux::Inotify2 and may be able to make that > work, but am wondering if this is something that people do routinely. > > My search at CPAN

Re: Monitor a directory for file creation

2008-01-15 Thread Tom Phoenix
On Jan 15, 2008 12:13 PM, Charlie Farinella <[EMAIL PROTECTED]> wrote: > I need to monitor a directory and when a file is created, modify it. The trouble isn't noticing when it's been created; the trouble is in noticing when it's *done* being created. (I doubt whether this is completely solved by