Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

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

by rvosa (Curate)
on Aug 22, 2007 at 15:49 UTC ( [id://634404]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Plz help me to create a perl script to catch errors and exceptions
in thread Plz help me to create a perl script to catch errors and exceptions

Could you please put the example log lines inside <code></code> tags so we can see where the line breaks are? Also, could you please explain what you mean by "catch errors/exceptions"? As I tried to explain earlier, that phrase (to "catch" an exception) means something specific that has nothing to do with log file parsing. Do you want to parse the file, match against some pattern, and then...? Write just the matching lines in another file? Play a little "ping" sound? Send an email? Note: I won't write any of these for you, but I'm willing to help you on your way.

Update: notice how your posts are being downvoted? This is because you're being very unclear, not because you're new to perl or something like that. Be clear about what you're trying to achieve.
  • Comment on Re^3: Plz help me to create a perl script to catch errors and exceptions

Replies are listed 'Best First'.
Re^4: Plz help me to create a perl script to catch errors and exceptions
by Anonymous Monk on Feb 20, 2008 at 12:10 UTC
    i have same question here. i am new to perl script and i want create a logfile(test.pl.log) of my perl script(test.pl). like in shell script to create logfiles, i do that exec 1>>/home/logfiles/test.ksh.log 2>&1 please give your suggestion. thanks in advance. Regards, pratap

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (7)
As of 2024-04-16 19:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found