LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-16-2009, 03:13 AM   #1
santoshbr4
LQ Newbie
 
Registered: Feb 2009
Posts: 1

Rep: Reputation: 0
Finding process id of last crashed process


Hi All,

I want to know the method to find out the pid of the last crashed process. I tried using ps -aux which shows the last dead process as defunct but it goes off immediately after a short interval of time. So is there any method which gets me the pid of last crashed process even after a long time the process has died.

Thanks in advance.
Regards,
Santosh
 
Old 02-16-2009, 08:06 AM   #2
clvic
Member
 
Registered: Feb 2008
Location: Rome, Italy
Distribution: OpenSuSE 11.x, vectorlinux, slax, Sabayon
Posts: 206
Blog Entries: 2

Rep: Reputation: 45
Well, when a process crashes it is removed from the process table, and that is why you can't find it by using "ps".
If you enable core dump generation, (ulimit -c <number>) you'll find that when a process crashes, a file containing information about the crashed process is put in its running folder. This file is named core.<pid> and retains some usefule information. Problem: this is not exactly what you need as there's not a functionality to find all recent crashed pids. Anyway, if you're analysing your own application, this can be of some help
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Finding Killed Process Harlin Linux - Security 3 11-01-2007 03:04 PM
Finding the startup process swethas Linux - Kernel 4 11-06-2006 03:10 AM
Identfying a hangup / Idle / Crashed Process in Linux ravi2082 Linux - General 7 08-16-2006 05:51 AM
finding process manager.. navaladi Mandriva 3 01-11-2005 03:25 PM
Finding process path praj_linux Solaris / OpenSolaris 5 12-21-2004 10:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration