Finding Unwanted Process

Hi

1 . I want to verify the unwanted running process? is there any other

command other than ps -ef ?

2. Can anybody tell me the difference for kill & pkill?

3. Suppose if i'm kill a process using kill command whether that

particular process can be restarted or not ?

4. Suppose if i'm kill a process using pkill command whether that

particular process can be restarted or not ?

Any help

Thanks in advance

[474 byte] By [bsnl-nib] at [2007-11-26 10:21:03]
# 1

1 . I want to verify the unwanted running process? is there any other

command other than ps -ef ?

top (open source)

prstsat

lsof

2. Can anybody tell me the difference for kill & pkill?

pkill uses grep

3. Suppose if i'm kill a process using kill command whether that

particular process can be restarted or not ?

why not? yes

4. Suppose if i'm kill a process using pkill command whether that

particular process can be restarted or not ?

why not? yes

alan

alanpae at 2007-7-7 2:20:09 > top of Java-index,General,Sys Admin Best Practices...
# 2
Hi alanI'm not getting u can you please explain me in details 1.lsofwhat is this ? command ?2. Can anybody tell me the difference for kill & pkill?pkill uses grep (This is the only difference r what?)Thanks in advance
bsnlnib at 2007-7-7 2:20:09 > top of Java-index,General,Sys Admin Best Practices...
# 3
1. http://www.google.co.uk/search?q=lsof&start=0&ie=utf-8&oe=utf-82.man pkill (and wherever it says 'pattern' in the man page, read 'string' or'program name' for now.) See the examples at the end.
kidari at 2007-7-7 2:20:09 > top of Java-index,General,Sys Admin Best Practices...
# 4
Thanks
bsnlnib at 2007-7-7 2:20:09 > top of Java-index,General,Sys Admin Best Practices...
# 5

Also, just a little hint if you're coming from Linux...

Don't... For the love of God... Use the "killall" command.

Really... Do not...

On Solaris this works -completely- different from the Linux "killall" command. On Solaris it literally does that: it kills -all- processes, including Init.

So... Just so you know... Don't

:)

Cailin_Coilleach at 2007-7-7 2:20:09 > top of Java-index,General,Sys Admin Best Practices...
# 6
HiCan anybody tell me the difference for kill & pkill? pkill uses grepPlease give me the detail explanationThanks in Advance
bsnlnib at 2007-7-7 2:20:09 > top of Java-index,General,Sys Admin Best Practices...
# 7
for kill you specify a process by process id egkill -TERM 123with pkill you specify the name of the running program.pkill -TERM httpdYou really should read the man pages for the 2 commands.
robertcohen at 2007-7-7 2:20:09 > top of Java-index,General,Sys Admin Best Practices...