How to stop runaway programs?
Does anyone know how I would stop a runaway program, much like you would do alt+ctrl+del or alt+f4 in windows? I'm using Mandrake 9.2 if that helps.
|
'ps auwx' to find your program (you need the PID). then: 'kill -9 <PID>'. This usually does the trick. What program is 'running away' on you, something you wrote or...?
G. |
Hi!
Type 'top' in a terminal window. Look at the 'PID' for the process you want to kill. Press the 'k' key and enter the PID. Just press enter when it asks what signal to kill it with. If that doesn't work, then the process is completely wild. Repeat the above, but when it asks for a signal enter '9'. This should definitely pull the plug for the process. Edit: Oh, and exit from top with 'q'. :rolleyes: Regards Martin |
if you are under X, you can use :
xkill.. and click on the window that you want to kill you can so use in console mode : killall example : killall kde this command will close all processus that kde uses |
Sorry, I was rather vague in my original post :p to be more specific, how do I stop something like Konqueror in KDE when it "hangs" and will not respond? Thanks
|
If there is a GUI that appears frozen, then 'start-->run command' and enter
xkill The click the mouse, after placing the little bullseye on the window. Right click to cancel xkill. R.O. |
example :
ps -le | grep konqueror the system returns informations about the processus **** (**** is a number, PID, which is representing Konqueror) so you can type : kill -9 ***** |
Or, if it is mozilla, or konqueror, or whatever, you can attempt a plain language kill with
pkill mozilla pkill konqueror Just make sure that you use the full name. pkill c will kill all processes that have a 'c' in the name. Usually, I try, in ascending order pkill processname xkill kill -9 PID R.O. |
pkill is an equivalent to killall ?
|
Quote:
R.O. |
thank you for your reply
|
If process Terminal is running, you could also say:
# skill -9 terminal (Just make sure you are root, unless its your process your killing) |
All times are GMT -5. The time now is 11:05 AM. |