|
Posted by Josef Moellers on February 28, 2008, 8:23 am
Please log in for more thread options
jamesjesse68@yahoo.com wrote:
> Hello,
>
> I have a requirement to monitor a log file in unix using perl 5.8.
> Needed is detection of "error" in a line appended to the file.
> Also need to detect if "complete" is not found after, say, 5 hours
> after invocation.
>
> I expect there is a hard way and an easy way to do this - could some
> kind person advise me?
> Pointers to Fine Perldocs welcome!
perldoc -q tail
How do I do a "tail -f" in perl?
HTH,
Josef
--
These are my personal views and not those of Fujitsu Siemens Computers!
Josef Möllers (Pinguinpfleger bei FSC)
If failure had no penalty success would not be a prize (T. Pratchett)
Company Details: http://www.fujitsu-siemens.com/imprint.html
|