![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Rules & FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX and Linux Applications Questions involving software not covered by other forum go here. This includes Databases and Middleware. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| redirect exception messages from program | mpang_ | Shell Programming and Scripting | 1 | 12-14-2006 07:21 AM |
| Help with RPC Exception | ejbrever | HP-UX | 2 | 08-24-2006 11:08 AM |
| URGENT:Program is not dropping core on customer AIX Machine | khan_069 | AIX | 1 | 05-10-2006 05:49 AM |
| Very Urgent help required in Shell Program | Suppandi | Shell Programming and Scripting | 1 | 12-09-2005 04:33 AM |
| Urgent!! How to write a shell program to execute command to access internet? | firebirdonfire | UNIX for Dummies Questions & Answers | 2 | 04-26-2001 08:16 AM |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hi Friends,
I am new to Unix, Now I am Working with shell scripting in my company Description:-By executing that script I need to get the exception from the log file I need the program for getting the Exceptions from the logfile,,and that program should be generic...I mean if i want to get the exception from any directory i need to get the exception without any changes or very small chenges in script If you can help me out,,it will be really very helpful,, Thanks alot In Advance |
| Forum Sponsor | ||
|
|
|
|||
|
Actually The Logfile will contains Different type exceptions.
for example ,Java exceptions , database related exceptions, sample exception snippet from the log file 2007-11-13 05:12:43,899 - [ERROR] : Threadid = 32, While executing [invoke] enco untered [com.get.prodapi.exception.ProductNotFoundException] : [Could not find Product data for fii = 32637174 at com.get.prodapi.dao.ProductDAO.getProductInfoByFii(ProductDAO.java:782)] at com.tibco.plugin.java.JavaActivity.eval(JavaActivity.java:395) at com.tibco.pe.plugin.Activity.eval(Activity.java:209) at com.tibco.pe.core.TaskImpl.eval(TaskImpl.java:541) at com.tibco.pe.core.Job.a(Job.java:709) at com.tibco.pe.core.Job.l(Job.java:499) at com.tibco.pe.core.JobDispatcher$JobCourier.a(JobDispatcher.java:249) at com.tibco.pe.core.JobDispatcher$JobCourier.run(JobDispatcher.java:200 ) This is one of the exception from the log file... I dont want to go and explicitly see for the how many Exceptions are there and what are the exceptions in the log file... By Executing my Generic script I want to get the exceptions from the log file which ever I will specify I think this would be very clear Appriciate your help. Thanks In Advance, Anji |
|
|||
|
I am completely new to shell scripting,,
But also with a searching I did some code which will grep the Exception from the log file,,,,but I want to get the whole exceptions from the log file I cant show up my code for security purpose(bcoz my collegues are also be the part of this forum only),but I can show you up the same code like that for example snippet which we can modify for our requirements grep $1 Exmple.log | awk 'BEGIN {i=0} {i=i+$1} END {print (i)}' it searches for a pattern i is a variable $1 means search pattern and Example.log is the filename to be searched Can you help me out this please? Thanks Guys Anji |
|||
| Google UNIX.COM |