LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 01-12-2004, 03:26 PM   #1
Delmarc
Member
 
Registered: Aug 2003
Location: Port Elizabeth, South Africa
Distribution: Mandrake 9.1, Windows XP Pro
Posts: 36

Rep: Reputation: 15
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.
 
Old 01-12-2004, 03:29 PM   #2
gurdib
Member
 
Registered: Jan 2004
Posts: 33

Rep: Reputation: 15
'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.
 
Old 01-12-2004, 03:31 PM   #3
MartinN
Member
 
Registered: Nov 2003
Location: Ronneby, Sweden
Posts: 555

Rep: Reputation: 30
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'.

Regards
Martin

Last edited by MartinN; 01-12-2004 at 03:32 PM.
 
Old 01-12-2004, 03:37 PM   #4
willand
Member
 
Registered: Dec 2003
Location: Paris, France
Distribution: Debian, Knoppix & Mandrake
Posts: 52

Rep: Reputation: 15
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
 
Old 01-12-2004, 03:37 PM   #5
Delmarc
Member
 
Registered: Aug 2003
Location: Port Elizabeth, South Africa
Distribution: Mandrake 9.1, Windows XP Pro
Posts: 36

Original Poster
Rep: Reputation: 15
Sorry, I was rather vague in my original post to be more specific, how do I stop something like Konqueror in KDE when it "hangs" and will not respond? Thanks
 
Old 01-12-2004, 03:41 PM   #6
RolledOat
Member
 
Registered: Feb 2003
Location: San Antonio
Distribution: Suse 9.0 Professional
Posts: 843

Rep: Reputation: 30
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.
 
Old 01-12-2004, 03:42 PM   #7
willand
Member
 
Registered: Dec 2003
Location: Paris, France
Distribution: Debian, Knoppix & Mandrake
Posts: 52

Rep: Reputation: 15
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 *****
 
Old 01-12-2004, 03:46 PM   #8
RolledOat
Member
 
Registered: Feb 2003
Location: San Antonio
Distribution: Suse 9.0 Professional
Posts: 843

Rep: Reputation: 30
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.
 
Old 01-12-2004, 03:48 PM   #9
willand
Member
 
Registered: Dec 2003
Location: Paris, France
Distribution: Debian, Knoppix & Mandrake
Posts: 52

Rep: Reputation: 15
pkill is an equivalent to killall ?
 
Old 01-12-2004, 03:55 PM   #10
RolledOat
Member
 
Registered: Feb 2003
Location: San Antonio
Distribution: Suse 9.0 Professional
Posts: 843

Rep: Reputation: 30
Quote:
Originally posted by willand
pkill is an equivalent to killall ?
certainly seems similar, although they have different flags for the same options based on the man pages. Hmmm, that is kill, xkill, pkill, killall. How many more ways to skin this cat.

R.O.
 
Old 01-12-2004, 03:58 PM   #11
willand
Member
 
Registered: Dec 2003
Location: Paris, France
Distribution: Debian, Knoppix & Mandrake
Posts: 52

Rep: Reputation: 15
thank you for your reply
 
Old 01-12-2004, 05:56 PM   #12
chrisk5527
Member
 
Registered: Oct 2002
Location: Michigan
Distribution: Slackware Linux 10.0
Posts: 289

Rep: Reputation: 30
If process Terminal is running, you could also say:

# skill -9 terminal

(Just make sure you are root, unless its your process your killing)
 
  


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 to stop certain programs from launhing when Kde start? sirpelidor Linux - General 2 09-08-2004 01:26 AM
how to stop programs i don't need starting up when booting? Jestrik Linux - Newbie 5 12-22-2003 12:03 PM
RH8 lockup (runaway) mherring Linux - General 2 01-23-2003 06:11 PM
RedHat 8 runaway mherring Linux - Software 3 01-20-2003 04:25 PM
runaway mouse... jhorvath Linux - Software 1 10-03-2002 08:11 PM


All times are GMT -5. The time now is 12:13 PM.

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