LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-17-2013, 05:27 AM   #1
Mycado
Member
 
Registered: Jun 2006
Location: Paris, France
Distribution: RHEL
Posts: 73

Rep: Reputation: 15
Red face How to clean "who -d" dead processes


Hello,

I recently try to figure out the meaning of "who" outputs, but I still cannot understand what the meaning of "who -d" (-d, --dead print dead processes).

On a server:
Quote:
[root@xxx /]# who -d
2012-08-31 15:25 1415 id=si term=0 exit=0
2012-08-31 15:25 6360 id=l5 term=0 exit=0
pts/1 2013-07-02 10:04 8840 id=ts/1 term=0 exit=0
pts/4 2012-11-30 18:58 17711 id=ts/4 term=0 exit=0
pts/5 2013-04-22 12:09 23726 id=ts/5 term=0 exit=0
pts/3 2013-01-28 11:32 0 id=/3 term=0 exit=0
pts/9 2013-01-25 10:41 5106 id=ts/9 term=0 exit=0
pts/10 2013-07-17 09:32 10213 id=s/10 term=0 exit=0
pts/11 2013-03-21 17:08 15814 id=s/11 term=0 exit=0
[..]
I have ~40 lines like that. Have "dead processes" from 2012...
Any solution to clean that ?


Best regards,
 
Old 07-17-2013, 05:40 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389
Why do you want/need to clean this?

We are talking about dead processes and not zombie processes. A dead process in this case is a process that ended and isn't running any more (a zombie process might not be running any more, but is still present and taking resources).

This info is for who's -d option:
Quote:
The exit field appears for dead processes and contains the termination and exit values (as returned by wait), of the dead process. This can be useful in determining why a process terminated.
The info shown is only present in the wtmp log and does not clutter your machine in any way.

If you do want to get rid of these then rotate the /var/log/wtmp file (which will also remove all other info that might be present).


EDIT: Linux and Unix who command (a bit more elaborate then the standard manual page)

Last edited by druuna; 07-17-2013 at 05:43 AM. Reason: Added link
 
Old 07-17-2013, 06:37 AM   #3
Mycado
Member
 
Registered: Jun 2006
Location: Paris, France
Distribution: RHEL
Posts: 73

Original Poster
Rep: Reputation: 15
Thanks a lot
 
Old 07-17-2013, 06:48 AM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389
You're welcome

BTW: Can you put up the [SOLVED] tag.
 
  


Reply

Tags
dead, process


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
"Clean" bitmap font as fall-back in Firefox SpelledJ Linux - Software 1 12-25-2009 11:34 AM
What is the difference between "make deinstall clean" and "pkg_delete"? Mr_Shameless *BSD 3 04-20-2007 07:41 PM
suse 10.0 => processes "sending kill signal": "done, done, missing"...!? ungua Linux - Newbie 2 01-18-2006 10:52 AM
what is difference between "reset" and "clean " commands? zameer_india Linux - Newbie 2 01-10-2005 06:23 AM
When "make install clean" ports fails everytime! Devboy *BSD 9 08-11-2004 07:46 PM


All times are GMT -5. The time now is 04:03 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration