Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 07-14-2010, 02:09 AM   #1
LQ Newbie
Registered: Jul 2005
Location: india
Posts: 12

Rep: Reputation: 0
Getting process details of something that exited

I am aware about the powerful /proc file system. If I have a process id, I can easily see the details about it by browsing the /proc/<process-id>/. Consider I have a process that starts, does some job and ends. Something like "grep" or "find". How do you see the details of this process? I can't see the process id on the /proc as it will be removed from here once the process is ended.

Is there anyway to do this?
Old 07-14-2010, 02:16 AM   #2
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911
The short answer is: can't be done.

The logical question: what are you trying to achieve
by seeing the "status" (little sense as the word makes
for something that isn't any more) of a "exited" process?

1 members found this post helpful.
Old 07-14-2010, 02:37 AM   #3
LQ Newbie
Registered: Jul 2005
Location: india
Posts: 12

Original Poster
Rep: Reputation: 0
@Tink, thanks. I am experimenting with some random stuff. I was looking for the VmSize, VmPeak etc, basically those values that are returned from cat /proc/<process-id>/status
Old 07-14-2010, 02:47 AM   #4
Senior Member
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (
Posts: 1,900

Rep: Reputation: 68
The point is: once the process has fully exited, there is no way even to specify it to ask questions about it - its PID can get reused, if there is such a need. And the question to you was what useful thing could you get out of it - for some of them, you can write a program that requests to get them right after process termination.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] Squid Parent: child process XXXXX exited with status 1 Lexus45 Linux - Server 1 05-24-2010 07:01 AM
Application error: child process exited abnormally monideepa Linux - Newbie 3 02-17-2006 11:47 AM
child process -1 exited due to signal 6 ashfaq Linux - Software 1 04-09-2004 06:42 AM
child process -1 exited with status 1 ashfaq Linux - Software 3 04-09-2004 05:08 AM
Getting a Process Details grub Programming 4 05-28-2003 05:02 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:49 PM.

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