On Mon, May 10, 2004 at 08:35:53AM -0600, Wiggins d Anconia wrote:
> There is a directory watching component in POE or you could grow your
There is also the FAM daemon, which taps into the kernel to do it. I'm
sure that there is a perl module to talk to that.
--
Robin <[EMAIL PROTECTED]>
NYIMI Jose (BMB) wrote:
Is this a joke ? :-)
Here's a typical diff output:
17,18d16
< (who writes under the
< pseudonym "Omniscient Trash")
45,46c43,44
< soon every Tom, Dick or Harry
< will be writing his own Perl book
---
soon every Tom, Randal and Larry
will be writing their own Perl book
> -Original Message-
> From: Wiggins d Anconia [mailto:[EMAIL PROTECTED]
> Sent: Monday, May 10, 2004 6:02 PM
> To: NYIMI Jose (BMB); PerlDiscuss - Perl Newsgroups and
> mailing lists; [EMAIL PROTECTED]
> Subject: RE: File Monitoring
>
>
> > >
> -Original Message-
> From: Dani Pardo [mailto:[EMAIL PROTECTED]
> Sent: Monday, May 10, 2004 4:25 PM
> To: [EMAIL PROTECTED]
> Subject: Re: File Monitoring
>
>
> Hi, I've done this app. What I do is put into a file the
> output of
> ls -lR /di
> > -Original Message-
> > From: Wiggins d Anconia [mailto:[EMAIL PROTECTED]
> > Sent: Monday, May 10, 2004 4:36 PM
> > To: PerlDiscuss - Perl Newsgroups and mailing lists;
> > [EMAIL PROTECTED]
> > Subject: Re: File Monitoring
>
> [snip]
>
> -Original Message-
> From: Wiggins d Anconia [mailto:[EMAIL PROTECTED]
> Sent: Monday, May 10, 2004 4:36 PM
> To: PerlDiscuss - Perl Newsgroups and mailing lists;
> [EMAIL PROTECTED]
> Subject: Re: File Monitoring
[snip]
> There is a directory watching compon
Hi, I've done this app. What I do is put into a file the output of
ls -lR /directory_to_watch.
Then use diff to compare the results. This gives the advantage that,
if a line starts with +, then a new file has been added. If it's -, a
file has been deleted :)
$ ls -lR > listing1.txt
$ ls -l
> Hi there,
>
> Can anyone recommend a good way to have a perl script that constantly
> monitors for the creation of new files on UNIX and launches another
> process?
>
> Thanks!
>
> Cheers,
> Ben
>
Lee's method would be the sufficient underkill way. I have an
application that does this type o
PerlDiscuss - Perl Newsgroups and mailing lists wrote:
Hi there,
Hello,
Can anyone recommend a good way to have a perl script that constantly
monitors for the creation of new files on UNIX and launches another
process?
Not sure if someone else recommended this but:
[untested code - for example