Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Plz help me to create a perl script to catch errors and exceptions

by Joost (Canon)
on Aug 22, 2007 at 15:05 UTC ( #634374=note: print w/replies, xml ) Need Help??


in reply to Plz help me to create a perl script to catch errors and exceptions

See perlintro, perlopentut, perlretut or better yet, get a good book on perl programming, also see how (not) to ask a question

You'd want something like:

use warnings; use strict; while (<>) { print if /ERROR|EXCEPTION/i; }
and call that as
myscript.pl /var/log/*log >errors.log

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://634374]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2021-02-25 20:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?