I was hoping for a pure perl solution. I have pulled some code out of
Recipe 8.5 of the Perl Cookbook for watching a growing file, and this seems
to be working. I was using a non-Cygwin port of tail.exe before, but have
since downloaded the Cygwin port. This tail.exe works when piping to another
process. The only thing I noticed with piping to a perl script is that when
the script completes the whole tail -f <somefile> | somescript.pl ends.
-----Original Message-----
From: Dave Cottle [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 15, 2000 11:21 AM
To: 'Morehouse, Ken'
Subject: RE: Tail for NT
do you want a perl solution or a exe solution? there is a tail module in
perl, and a tail.exe module from the cygwin project. what tail are you
using?
regards, dave
--
learn concepts, not methods -- a good mind devises its own methods
> -----Original Message-----
> From: Morehouse, Ken [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, November 15, 2000 4:30 PM
> To: Win32 Perl Admin ActiveState LS (E-mail)
> Subject: Tail for NT
>
>
> Has anyone used the Win32 port of tail.exe successfully? I
> can use it to -f
> a file without issue when the output goes to STDOUT. If I try
> to pipe the
> output to another process, tail no longer sees additions to
> the file. I can
> tail a file without -f to a pipe okay.
>
> What I'd like to do is this. I have a daily log file from my
> RADIUS server
> that can't be modified while in use. I am being asked to
> provide realtime
> log info from this file. I'd like to watch the logfile and
> pipe each new
> additional record to a perl script that takes the info and
> puts it in a SQL
> database.
>
> Any ideas? [Tail -f <file> | somescript.pl] would be the
> ideal solution, but
> obviously doesn't work correctly.
>
> Ken Morehouse II, MCSE
> Telergy
> IT Operations
> Sr NT Administrator
> [EMAIL PROTECTED]
> (315) 362-2180 (DID)
> (315) 362-0203 (FAX)
> http://www.telergy.net
>
>
> _______________________________________________
> Perl-Win32-Admin mailing list
> [EMAIL PROTECTED]
> http://listserv.ActiveState.com/mailman/listinfo/perl-win32-admin
>
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-admin