LinuxQuestions.org
Review your favorite Linux distribution.
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 05-15-2006, 12:13 AM   #1
shipon_97
Member
 
Registered: Oct 2005
Location: Bangladesh
Posts: 484

Rep: Reputation: 30
Exclamation About procees status


Friends ,

when i want to know "Is any process is running in my Linux Pc"? Then i run "ps -ef" command , but i can't understand the meaning of this command .

Suppose i want to know is "Dovecot" service running in my linux pc? then i found :
root 3441 1 0 09:43 ? 00:00:00 /usr/sbin/dovecot
root 3445 3441 0 09:43 ? 00:00:00 dovecot-auth

Here i found 5 slot or section . But i can't understand what is the meaning of this ? plz inform me .....
 
Old 05-15-2006, 12:22 AM   #2
meng
Member
 
Registered: Apr 2005
Location: Rochester, MN
Distribution: Ubuntu 7.04
Posts: 127

Rep: Reputation: 15
The format here is:
UID PID PPID C STIME TTY TIME CMD

where
UID: user ID of process owner
PID: process ID
PPID: parent process ID
C: processor utilization for scheduling (obsolete)
STIME: start time
TTY: terminal attached to process
TIME: CPU time (in seconds)
CMD: command executing
(I cut and pasted this from http://www.cs.um.edu.mt/~cstaff/cour.../csi110.3.html)

Bottom line is that your output shows that dovecot is running. You can filter the output by piping to grep, i.e.
ps -ef | grep dovecot
 
Old 05-15-2006, 03:01 AM   #3
shipon_97
Member
 
Registered: Oct 2005
Location: Bangladesh
Posts: 484

Original Poster
Rep: Reputation: 30
Question ABout process status

Dear meng ,

I have littilebit confused about "ps -e" and "ps -ef" ? Suppose in this moment
i have installed "clamav" into my pc . Now i run firsly :

#ps -ef|grep clamd

root 3328 3218 0 13:00 pts/0 00:00:00 grep clamd

and when i run :
#ps -e |grep clamd

Then, it shows nothing . So now i am confused my "clamd" process running or not ?plz help ASAP....
 
Old 05-15-2006, 03:30 AM   #4
jacobselvin
Member
 
Registered: May 2005
Location: Australia
Distribution: SUSE 10.1
Posts: 62

Rep: Reputation: 15
It seems like the process clamd is not running. Here your grep command (grep clamd) is still running that why you see the line with command "grep clamd"

#ps -ef|grep clamd
root 3328 3218 0 13:00 pts/0 00:00:00 grep clamd

If you want to know the difference between various ps options then run man ps. It'll list out all the options and their details.
Cheers
- Jack
 
Old 05-15-2006, 10:07 AM   #5
meng
Member
 
Registered: Apr 2005
Location: Rochester, MN
Distribution: Ubuntu 7.04
Posts: 127

Rep: Reputation: 15
I'm not an expert, but I believe ps -e will provide less information than ps -ef. In particular, the name of the command is not included with ps -e. That's why ps -e | grep clamd returns nothing. ps -ef | grep clamd will always return something, namely the process grep clamd. However, if that's all that it returns, then clamd is not running. You can go for partial matches too, such as ps -ef | grep clam. (I don't know anything about clamav, but if clamd is definitely the process you are looking for, then it ain't running.)
 
  


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
How about adding new status jt1020 LQ Suggestions & Feedback 11 05-29-2009 12:57 PM
get a status output cccc Programming 12 07-28-2005 06:33 PM
Status mmmm LQ Suggestions & Feedback 2 06-25-2005 03:35 PM
newbie status DJOtaku LQ Suggestions & Feedback 3 10-28-2004 09:17 PM
status of wine is...?? Pcghost Linux - Software 9 05-21-2003 01:03 PM


All times are GMT -5. The time now is 03:21 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