in reply to Re^10: trying to implement file tail with regular expression
in thread trying to implement file tail with regular expression
See the tail option
When first started, read and return n lines from the file. If n is zero, start at the end of file. If n is negative, return the whole file. Default is 0.
pojmy $fh = File::Tail->new( name => $Config->{'_'}{'DIAGFILE'}, interval => 1, # wait at start maxinterval => 10, # change to suit adjustafter => 10, # change to suit tail => -1, # all lines read at start up );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^12: trying to implement file tail with regular expression
by mkhayat (Initiate) on Feb 17, 2016 at 08:43 UTC |