perlAffen has asked for the wisdom of the Perl Monks concerning the following question:
Thankswhile(-s $file ) { open(TF,$file) || last ; seek(TF,$curpos,0); @lines=<TF>; $cursorposition = tell(TF); last if ((stat(_))[7] < $cursorposition); foreach $nline (@lines){ $newline = substr $nline, 24; # write out to tailfile $newline } close(TF); sleep 1; } } else { sleep 5; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl Tail ?
by marto (Cardinal) on Oct 04, 2005 at 15:34 UTC | |
|
Re: Perl Tail ?
by ikegami (Patriarch) on Oct 04, 2005 at 15:31 UTC | |
|
Re: Perl Tail ?
by rinceWind (Monsignor) on Oct 04, 2005 at 15:36 UTC | |
|
Re: Perl Tail ?
by LanceDeeply (Chaplain) on Oct 04, 2005 at 15:50 UTC | |
|
Re: Perl Tail ?
by Skeeve (Parson) on Oct 04, 2005 at 15:32 UTC | |
by perlAffen (Sexton) on Oct 04, 2005 at 15:46 UTC | |
by QM (Parson) on Oct 04, 2005 at 18:04 UTC | |
by perlAffen (Sexton) on Oct 05, 2005 at 03:10 UTC | |
by Anonymous Monk on Oct 04, 2005 at 20:28 UTC | |
|
Re: Perl Tail ?
by graff (Chancellor) on Oct 04, 2005 at 22:57 UTC |