On Tue, 2007-07-24 at 12:44 +0300, Octavian Rasnita wrote: > From: "Jeff Pang" <[EMAIL PROTECTED]> > > --- Octavian Rasnita <[EMAIL PROTECTED]> wrote: > > You may try the Unix 'tail' command and pipe the > > result to your Perl program.Like: > > > > tail -f access_log|perl -e > I can do this, but in that case I don't know how to be sure that I don't > skip any line of the file. > The condition is to not skip any line and to not get the same line twice. > > I tested the tail command in the command line using: > > tail -n 1 /path/to/file
tail -f is the follow option, look it up man tail. The solution you propose you will eventually miss lines from the file, tail -f wont. I have used File::Tail successfully as recommended by Angerstein. It has run for months without issue or missing a beat. -- Ken Foskey FOSS developer -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/