Sponsored Content
Special Forums UNIX and Linux Applications Urgent---Program for getting Exception from a log Post 302169136 by Anji on Wednesday 20th of February 2008 11:31:43 AM
Old 02-20-2008
MySQL Urgent---Program for getting Exception from a log

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 AdvanceSmilie
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Urgent!! How to write a shell program to execute command to access internet?

hi, I am new ot unix. So, can i write a shell(c shell or korn shell) program to access internet? I mean if I run the program, it can access specified url and then copy the html to a file? Can anyone help me? And how can make the program runs every 1 hr? new comer (2 Replies)
Discussion started by: firebirdonfire
2 Replies

2. Shell Programming and Scripting

Very Urgent help required in Shell Program

How do I Ftp, and rename multiple files in one unix script. I have to send it with .tmp extension , then rename it to .txt after FTP is done . I need to do a Mass rename of more than 1 file in a shell script , Urgent help required. (1 Reply)
Discussion started by: Suppandi
1 Replies

3. AIX

URGENT:Program is not dropping core on customer AIX Machine

hi We have a program which is running on cutomer end,and when its crashing its not dropping core, we asked them to check ulimit,they say that its unlimited. Even when they crash the program manually by using command kill -ABRT <pid> its not dropping the core,on our end when we use same... (1 Reply)
Discussion started by: khan_069
1 Replies

4. Shell Programming and Scripting

redirect exception messages from program

Hi, I have a script which invoke a java program and I would like to know whether it is possible to log the exception thrown by the program to a log file in the script? Thanks! (1 Reply)
Discussion started by: mpang_
1 Replies

5. UNIX for Dummies Questions & Answers

getting help on finding exception in running log file

Hi all, I am trying to write a script for an application server log file where i want to put this script as a cron tab entry and it will check the server log file last 1000/500 line for every fifteen minute. i am using the script like this. count=`tail -n 1000 Trace.log | grep -c... (1 Reply)
Discussion started by: senthilkumar_ak
1 Replies

6. Shell Programming and Scripting

Program Bash VERY URGENT

Hello I have to do a program in Bash, need help because it does not go out for me and go enough time with this!! Five directories(boards of directors) that more occupy, arranged according to size. To measure the size of every directory(board of directors) there must not be included the size... (1 Reply)
Discussion started by: danihj
1 Replies

7. Programming

urgent help with file manipulation program

Hey, i am trying to write a program that takes multiple files as command line arguments, then outputs them to a single file. i also need the option to read them back out again. essentially what i am trying to create is an archiver, however, a very simple one. The program i have accomplished so far... (1 Reply)
Discussion started by: wezzyb
1 Replies

8. Programming

An error in my c++ program... please help urgent.

The following is a program to convert an infix expression to postfix expression. //Convert an infix expression to postfix expression... #include<iostream> #include<string> #include<cstdlib> using namespace std; char ifx,pfx,stk; int top=-1,n; void push(char ch) { if(top!=n) ... (6 Replies)
Discussion started by: poonam.gaigole
6 Replies

9. Programming

Wrapper for unix program - urgent help needed

Hello all , i need some help asap i have a program that keeps killing the machine when i did google searches and 2 days later i ran strace it seems the programm keeps making a system call to gettimeofday to i guess increment a counter ? gettimeofday({1347986584, 464904}, NULL) = 0... (6 Replies)
Discussion started by: NetworkLearning
6 Replies

10. Shell Programming and Scripting

Monitor logs for exception and if exception come then sent an email

Hi Folks, please advise , I have logs generated on unix machine at location /ops/opt/aaa/bvg.log , now sometimes there come exception in these logs also, so I want to write such a script such that it should continuously monitor these logs and whenever any exception comes that is it try to find... (3 Replies)
Discussion started by: tuntun27272727
3 Replies
crash(8v)																 crash(8v)

Name
       crash - what happens when the system crashes

Description
       This section explains what happens when the system crashes and shows how to analyze crash dumps.

       When the system crashes voluntarily it prints a message on the console in the form:

	      panic: explanation

       The  system takes a dump on a mass storage peripheral device or the network, and then invokes an automatic reboot procedure as described in
       Unless there is some unexpected inconsistency in the state of the file systems due to hardware or software failure, the system then resumes
       multi-user operations.  If auto-reboot is disabled, the system halts at this point.

       The system has a large number of internal consistency checks; if one of these fails, it prints a short message indicating which one failed.

       The  most  common cause of system failures is hardware failure.	In all cases there is the possibility that hardware or software error pro-
       duced the message in some unexpected way.  These messages are the ones you are likely to encounter:

       IO err in push
       hard IO err in swap
	    The system encountered an error when trying to write to the paging device or an error in reading  critical	information  from  a  disk
	    drive.  Fix your disk if it is broken or unreliable.

       timeout table overflow
	    Due to the current data structure, running out of entries causes a crash.  If this happens, make the timeout table bigger.

       Exception Condition
	    An unexpected system error has occurred.  The exception types are as follows:

	    ---------------------------------------------------------------
	    Mnemonic   Description
	    ---------------------------------------------------------------
	    INT        External interrupt
	    MOD        TLB modification exception
	    TLBL       TLB miss exception (load or instruction fetch)
	    TLBS       TLB miss exception (store)
	    AdEL       Address error exception (load or instruction fetch)
	    AdES       Address error exception (store)
	    IBE        Bus error exception (for an instruction fetch)
	    DBE        Bus error exception (for a data load or store)
	    Sys        Sys call exception
	    Bp	       Breakpoint exception
	    CpU        Coprocessor unusable exception
	    Ovf        Arithmetic overflow exception
	    ---------------------------------------------------------------

       KSP not valid
	      This indicates either a problem in the system or failing hardware.

       init died
	      The  system initialization process has exited.  The only solution is the automatic reboot procedure described in Until this is done,
	      new users cannot log in.

       When the system crashes, it attempts to write an image of memory into the back end of the primary swap area.  After the system is rebooted,
       the  program  runs  and	preserves  a  copy  of	this core image and the current system in a specified directory for later access.  See for
       details.

       To analyze a dump, you should begin by running with the flag on the core dump.

See Also
       dbx(1), reboot(8), savecore(8)

								       RISC								 crash(8v)
All times are GMT -4. The time now is 09:42 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy