Re: monitor unix file for string



jamesjesse68@xxxxxxxxx writes:

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.

'perldoc -q tail'

Also need to detect if "complete" is not found after, say, 5 hours
after invocation.

'perldoc -f alarm'

might be two useful pointers.

//Makholm
.



Relevant Pages

  • monitor unix file for string
    ... 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. ...
    (comp.lang.perl.misc)
  • Re: Auto Update error messages
    ... Here is the information from the windows update log file: ... Setting next AU detection timeout to 2005-01-04 20:52:59 ... WU client calls back to search call AutomaticUpdates with code Call complete ... Let me know if this helps or if you need more info. from the log file. ...
    (microsoft.public.windowsxp.help_and_support)
  • Please critique this short script that scans a log file
    ... I'm new to Perl and wrote a simple script to scan a database log file ... with embedded timestamps. ...
    (comp.lang.perl.misc)
  • Re: Perl reliability?
    ... one log file, and sometimes it won't. ... Is Perl more stable on other platforms? ... If you could try it some how w/out threading, ... possibly not thread safe, possibly thread ...
    (comp.lang.perl.misc)
  • Re: logrotate and perl file handles. How do I know when to reopen my log file?
    ... I'm not monitoring the log file, I'm writing to it. ... logrotate and perl file handles. ...
    (perl.beginners)