LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-01-2003, 09:26 AM   #1
thebear
Member
 
Registered: Mar 2003
Distribution: RedHat 9
Posts: 52

Rep: Reputation: 15
Closing Hanging Programs


Newb question...I have RH9 and I have no idea how to close a program when it starts to hang. The Windows equivelent of what I mean is CTRL+ALT+DLT - being able to close a frozen program. Any help on this would be cool
 
Old 06-01-2003, 09:31 AM   #2
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
Graphically you can select xkill from your menu, then click on the app's window (but not taskbar entry)
From the command line, use either ps or top to get the process id, and then kill it. Use the man files for more info on each command.
 
Old 06-01-2003, 10:19 AM   #3
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
Essentially, in command line, find the process, then kill the process number

# What processes are running
ps -A
# Find a process by name
ps -ef | grep -i <plain text>
For example, XCDroast
ps -ef | grep -i xcdroast

That returns a number, then

kill -9 <pid> should get it.

For a gui window, run xkill
 
Old 06-01-2003, 11:05 AM   #4
twilli227
Member
 
Registered: May 2003
Location: S.W. Ohio
Distribution: Ubuntu, OS X
Posts: 760

Rep: Reputation: 30
fancypiper, when I run ps -A it shows the pid. Can't you just kill<pid>?
Thanks for the grep, I will be using that.
 
Old 06-01-2003, 11:09 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
yes you can, the -9 jsut send the KILL signal rather than the default HUP signal (i think that's defaualt.. can't remember)

you could also use "killall <name>" not as powerful, but much quicker.
 
Old 06-01-2003, 11:41 AM   #6
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
kill -l lists the signal types btw. Seems like kill -s signal name or number seems the correct syntax
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Restart X without closing programs 4of11 Linux - Software 1 08-17-2004 02:48 PM
my table with programs when i press in button (left down corner) do no show programs sagi7ario Mandriva 1 03-12-2004 12:02 PM
Problem with Konsole closing other programs mark_2811 Linux - Software 1 12-29-2003 04:59 PM
Some programs closing abruptly (why?) TippyToes Linux - General 6 06-16-2003 01:19 AM
killing hanging programs.... GT I.N.C Linux - Newbie 3 08-17-2002 06:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:25 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
Open Source Consulting | Domain Registration