LinuxQuestions.org
Register a domain and help support LQ
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: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,985
Blog Entries: 11

Rep: Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879
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: Russia
Distribution: NixOS (http://nixos.org)
Posts: 1,893

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.
 
  


Reply


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 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


All times are GMT -5. The time now is 09:08 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration