[Perl] logging and sending from a running log

Gaal Yahas gaal at forum2.org
Thu Nov 7 02:23:52 PST 2002

On Thu, Nov 07, 2002 at 12:14:06PM +0200, Oren Gozlan wrote:
> Hi ,
> i have this wu-ftp server running , that log ftp access (xferlog)
> that his output is :
> Wed Nov  6 20:30:50 2002 1 20636 
> var/users/oren/hawk-eye_log.txt b _ o r oren ftp 0 * c
> how can i do somthing that will tail this log, and on each new access, 
> will send an email with when;what;who ...

You could use File::Tail for the tail -f counterpart, it's simple:


You could also use Event::File::Tail, it's less simple:


For mailing, do use one of the standard modules.

Gaal Yahas <gaal at forum2.org> <g.yahas at reading.ac.uk>
http://gaal.livejournal.com/ http://gaal.forum2.org/

More information about the Perl mailing list