Killing processes

Killing processes

Post by Arlan Lucas de Souz » Tue, 18 Apr 2000 04:00:00



I don't know why but after starting a xgalaga session (an old game)
and then quitting (shift-q command) I always can see a few xgalaga
processes that remain in my processes list. See part of my last output
to "ps ux" command (I extract some columns):

USER       PID %CPU %MEM    STAT START   TIME COMMAND
arlan    19845  0.0  0.0    SW   17:18   0:00 [sh]
arlan    19857  0.0  0.0    SW   17:18   0:00 [startx]
arlan    19864  0.0  0.0    SW   17:18   0:00 [xinit]
arlan    19869  0.0  0.0    SW   17:18   0:00 [sh]
arlan    19871  0.0  0.7    S    17:18   0:00 wmtime
arlan    19872  0.0  7.2    S    17:18   0:05 wmaker
arlan    19876  3.7  0.8    S    17:18   3:08 wmmon -s
arlan    19908  0.0  1.7    S    17:20   0:01 xterm -bg lightye
arlan    19910  0.2  7.8    S    17:20   0:11 pine -i
arlan    20065  0.0  1.1    S    18:06   0:00 /usr/lib/xgalaga/
arlan    20160  0.8 24.2    S    18:21   0:11 /usr/lib/netscape
arlan    20168  0.0  3.4    S    18:25   0:00 -sh
arlan    20240  0.0  1.1    S    18:31   0:00 /usr/lib/xgalaga/
arlan    20249  0.0  1.1    S    18:32   0:00 /usr/lib/xgalaga/
arlan    20257  0.0  1.1    S    18:33   0:00 /usr/lib/xgalaga/
arlan    20261  0.7 16.4    S    18:34   0:03 emacs -geometry 7
arlan    20264  0.0  3.2    R    18:42   0:00 ps ux

I'd like to kill all xgalaga's process once. The command "ps ux | grep
'xgalaga'" can extracts these process but how could I extract PIDs and
pipe then to a "kill -9" command? The cut -f2 -d" " command don't work
to me.

Thanks in advance,
Arlan

 
 
 

Killing processes

Post by Tom Hoffman » Wed, 19 Apr 2000 04:00:00


man killall

In article


Quote:> I don't know why but after starting a xgalaga session (an old game) and
> then quitting (shift-q command) I always can see a few xgalaga processes
> that remain in my processes list. See part of my last output to "ps ux"
> command (I extract some columns):

> USER       PID %CPU %MEM    STAT START   TIME COMMAND arlan    19845
> 0.0  0.0    SW   17:18   0:00 [sh] arlan    19857  0.0  0.0    SW  
> 17:18   0:00 [startx] arlan    19864  0.0  0.0    SW   17:18   0:00
> [xinit] arlan    19869  0.0  0.0    SW   17:18   0:00 [sh] arlan  
> 19871  0.0  0.7    S    17:18   0:00 wmtime arlan    19872  0.0  7.2  
> S    17:18   0:05 wmaker arlan    19876  3.7  0.8    S    17:18   3:08
> wmmon -s arlan    19908  0.0  1.7    S    17:20   0:01 xterm -bg lightye
> arlan    19910  0.2  7.8    S    17:20   0:11 pine -i arlan    20065
> 0.0  1.1    S    18:06   0:00 /usr/lib/xgalaga/ arlan    20160  0.8 24.2
>    S    18:21   0:11 /usr/lib/netscape arlan    20168  0.0  3.4    S  
> 18:25   0:00 -sh arlan    20240  0.0  1.1    S    18:31   0:00
> /usr/lib/xgalaga/ arlan    20249  0.0  1.1    S    18:32   0:00
> /usr/lib/xgalaga/ arlan    20257  0.0  1.1    S    18:33   0:00
> /usr/lib/xgalaga/ arlan    20261  0.7 16.4    S    18:34   0:03 emacs
> -geometry 7 arlan    20264  0.0  3.2    R    18:42   0:00 ps ux

> I'd like to kill all xgalaga's process once. The command "ps ux | grep
> 'xgalaga'" can extracts these process but how could I extract PIDs and
> pipe then to a "kill -9" command? The cut -f2 -d" " command don't work
> to me.

> Thanks in advance, Arlan


 
 
 

1. A method to kill process that cannot be killed even with `kill -9'.

Try this method:
kill -9 non-killed-pid
/usr/proc/bin/prun non-killed-pid
/usr/proc/bin/pmap non-killed-pid
This method works perfectly with Solaris 6. Sometimes you can do it
without the "kill -9 non-killed-pid"

P.S. I don't know about other versions and about some hardware programs,
like tar.

--
------------------------------------------------------
Eugene S. Ilchenko, System Network Administrator
http://secinf.net/

2. A few newbie security questions

3. How to kill process which not killed by 'kill' ?

4. dot slash commands and paths during telnet

5. How to Kill Process and Its sub-process and its sub-process??

6. ProAudioStudio SCSI install problems

7. how to kill process when kill -9 is not working ?

8. .hushlogin

9. Can''t kill process w/ KILL

10. Problem w/ Quota => Can't kill Processes (kill -9 xx)

11. Killing processes that kill

12. Killing processes

13. Can't kill process w/ -9