[LA.pm] Monitoring a directory using Event.pm
Clay Irving
clay at panix.com
Wed Jun 8 12:38:15 PDT 2005
Ranga Nathan wrote:
>I have a need to run a script when a file is received into a directory via
>FTP. This is Linux SuSE9 environment.
>I am looking at Event.pm documentation. Can some one show me examples of
>how to monitor a directory for new files?
>If there are other elegant methods I would like to know.
>
>As a last resort, I can hand-roll one. But why re-invent the wheel?
>
>
I don't think I understand what you are trying to do -- Are you trying
to do something that "find" or "if (-e $filename)" can't do for you?
More information about the Losangeles-pm
mailing list