LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-16-2006, 08:38 PM   #1
Elomis
Member
 
Registered: Dec 2004
Location: Sydney
Distribution: SUSE
Posts: 89

Rep: Reputation: 15
KILL only wounding


Hi Guys,

As root, my kill command either takes a very long time (2-3 minutes) to terminate a program, or it doesn't terminate it at all. Is there a way to check why?
 
Old 08-16-2006, 08:39 PM   #2
Caeda
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Suse 6.0+, Mandrake 5.0-10.0, Redhat 6.0-9.0, Gentoo 1.2+, Gnoppix, Knoppix, Sabayon, Ubuntu 5.04+
Posts: 1,811

Rep: Reputation: 45
Try killall processname
 
Old 08-16-2006, 08:57 PM   #3
linux=future
Member
 
Registered: Apr 2005
Distribution: Debian
Posts: 154

Rep: Reputation: 30
Are you trying to kill the same program all the time or is it like this with every program? Some programs can catch or ignore the default signal (which is really just a suggestion to stop).
 
Old 08-16-2006, 09:05 PM   #4
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 62
If installed there is pkill command.
Also if using the KDE gui you can hit Alt-Ctrl-Esc to bring up a skull and crossbones. Move mouse over app and hit the mouse button.

Brian1
 
Old 08-16-2006, 09:15 PM   #5
Elomis
Member
 
Registered: Dec 2004
Location: Sydney
Distribution: SUSE
Posts: 89

Original Poster
Rep: Reputation: 15
It's the same with most programs however some are particuarly ignorant of the command (kaffeine for example seems to laugh mockingly). Brian1 mentioned pkill, is this the "die, die now" command I am looking for?
 
Old 08-16-2006, 10:05 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911
No, it's not. They all do the same, basically; if they don't work (usually
that only happens if the program is waiting for some IO to happen) you COULD
try to look which resources it's trying to reach via lsof, and make the other
processes holding on to it go away; or you could try shooting its parent.


Cheers,
Tink
 
Old 08-16-2006, 10:08 PM   #7
timothyb89
Member
 
Registered: Jul 2006
Location: Colorado, USA
Distribution: openSuSE 11.4
Posts: 118

Rep: Reputation: 15
or maybe it being like a Windows app and reopening itself? try
Code:
kill <pid> ; kill <pid> ; kill <pid>
to send three kill signal at the same time.
I not sure, though...
 
Old 08-16-2006, 10:24 PM   #8
AAnarchYY
Member
 
Registered: Sep 2004
Location: Carlisle, MA
Distribution: Debian 8
Posts: 419

Rep: Reputation: 30
try adding a -SIGKILL flag on
kill -SIGKILL <pid>
killall -SIGKILL <process>
 
Old 08-16-2006, 10:41 PM   #9
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,544
Blog Entries: 4

Rep: Reputation: 57
kill -9 <pid>

That is the "die, die now" command you're after, but before using that you should really find out why it isn't closing with just kill <pid> first.
 
Old 08-16-2006, 10:47 PM   #10
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911
Quote:
Originally Posted by cs-cam
kill -9 <pid>

That is the "die, die now" command you're after, but before using that you should really find out why it isn't closing with just kill <pid> first.
And even that won't work if the process is waiting on IO ;}


Cheers,
Tink
 
Old 08-16-2006, 10:49 PM   #11
AAnarchYY
Member
 
Registered: Sep 2004
Location: Carlisle, MA
Distribution: Debian 8
Posts: 419

Rep: Reputation: 30
-sigkill == -9
 
  


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
What if 'kill -9' fails to kill a task? chii-chan Linux - Newbie 15 03-27-2013 04:47 PM
how to use kill to kill a batch of processes with same name? dr_zayus69 Linux - Software 2 09-03-2005 07:35 PM
Kill command could not kill Kanaflloric Linux - General 11 08-22-2005 08:18 AM
cannot kill process (kill -9 does not work) mazer13a Linux - General 1 05-27-2005 03:32 PM
kill X = kill computer! jd243 Slackware 3 07-02-2003 12:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:33 AM.

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