Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- monitor unix file for string
February 28, 2008, 1:20 pm
rate this thread
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
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!
Re: monitor unix file for string
perldoc -q tail
How do I do a "tail -f" in perl?
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