watch folder concept in Perl

watch folder concept in Perl

am 07.09.2009 14:28:35 von Ganesh Babu N

Dear All,

Can we develop application which will watch a specific folder and when
any files comes into the folder then some action takes place in Perl.

Similar to an windows service. Is it possible in Perl.

Regards,
Ganesh

--
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/

Re: watch folder concept in Perl

am 07.09.2009 15:41:28 von Peter Scott

On Mon, 07 Sep 2009 17:58:35 +0530, Ganesh Babu N wrote:
> Can we develop application which will watch a specific folder and when
> any files comes into the folder then some action takes place in Perl.
>
> Similar to an windows service. Is it possible in Perl.

Not only possible, it's been done before and made available for reuse:

http://search.cpan.org/~andya/File-Monitor-0.10/lib/File/Mon itor.pm

--
Peter Scott
http://www.perlmedic.com/
http://www.perldebugged.com/
http://www.informit.com/store/product.aspx?isbn=0137001274

--
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/

Re: watch folder concept in Perl

am 07.09.2009 16:54:23 von Jenda Krynicky

Date sent: Mon, 7 Sep 2009 17:58:35 +0530
Subject: watch folder concept in Perl
From: Ganesh Babu N
To: Perl

> Dear All,
>
> Can we develop application which will watch a specific folder and when
> any files comes into the folder then some action takes place in Perl.
>
> Similar to an windows service. Is it possible in Perl.
>
> Regards,
> Ganesh

There are several libraries for this. For Windows have a look at
Win32::ChangeNotify and Win32::IPC.

Jenda
===== Jenda@Krynicky.cz === http://Jenda.Krynicky.cz =====
When it comes to wine, women and song, wizards are allowed
to get drunk and croon as much as they like.
-- Terry Pratchett in Sourcery


--
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/