LinuxQuestions.org
Review your favorite Linux distribution.
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 12-09-2008, 05:15 AM   #1
HarryBoy
Member
 
Registered: Apr 2008
Distribution: MontaVista Linux Version 4.0.1, Professional Edition
Posts: 215

Rep: Reputation: 16
Kill a program not working


Hi I have a program called 'myprogram'. Normally I would do
'killall myprogram' to terminate it.

But now my program is being started using 'nice; to change its priority like so:
:/bin/nice -n +5 /opt/ad/bin/myprogram


When I now do 'killall myprogram' it is not terminated.

Why is this so?

Thanks

harry
 
Old 12-09-2008, 06:16 AM   #2
ph73nt
Member
 
Registered: Feb 2005
Location: Kent, UK
Distribution: OpenSUSE, Raspian
Posts: 60

Rep: Reputation: 16
What's your output from ps -A?
 
Old 12-09-2008, 07:08 AM   #3
thecarpy
Member
 
Registered: Apr 2005
Location: France
Distribution: Debian
Posts: 125

Rep: Reputation: 19
do a
Code:
ps -ef | grep myprogram
get the PID of the process (the higher number of the two displayed) and kill it with:

Code:
kill 123
if that does not work, do

Code:
kill -11 123
 
Old 12-09-2008, 08:23 AM   #4
baig
Member
 
Registered: Nov 2008
Location: وادی ھنزہ
Distribution: Solaris 5.10, Debian Server 5.2, CentOS 5.6
Posts: 226
Blog Entries: 3

Rep: Reputation: 38
those processes which are not terminated with

Code:
killall -e programname..
or

Code:
kill process ID
you will have to treat them a bit harsh..


Code:
kill -9 process ID
will surely kill your process

Cheers!!
 
  


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
be sure to kill a program tanoatlq Linux - General 9 04-25-2008 08:54 PM
how kill a program SciYro Linux - Newbie 5 07-11-2004 04:20 AM
How to kill my program? kewlchen Linux - General 7 08-12-2003 03:40 PM
cannot kill a program Chooco Linux - General 19 07-23-2003 07:01 AM
Kill a program tunedLow Linux - Newbie 3 10-27-2001 02:51 PM


All times are GMT -5. The time now is 10:10 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