LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 07-14-2010, 01:09 AM   #1
navaneethkn
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, 01:16 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
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?


Cheers,
Tink
 
1 members found this post helpful.
Old 07-14-2010, 01:37 AM   #3
navaneethkn
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, 01:47 AM   #4
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
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.
 
  


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

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

All times are GMT -5. The time now is 07:36 PM.

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