Unix/Linux Go Back    


Solaris The Solaris Operating System, usually known simply as Solaris, is a Unix-based operating system introduced by Sun Microsystems. The Solaris OS is now owned by Oracle.

Cannot kill a process with kill -9

Solaris


Closed Linux or Unix Question    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 02-06-2013
adilyos's Unix or Linux Image
adilyos adilyos is offline
Registered User
 
Join Date: Jan 2012
Last Activity: 31 July 2013, 8:28 AM EDT
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts
Cannot kill a process with kill -9

Hello everyone,

I have a process that I want to kill. I have tried
Code:
kill-9 PID

but it doesn't work. I have tried
Code:
preap PID

but it doesn't work too.

The parent of my process is the process whose PID is 1, so I can't kill it.

My OS is a Solaris 9.

Can anyone help me understand what's going ?

Thanks,
Sponsored Links
    #2  
Old Unix and Linux 02-06-2013
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
 
Join Date: Feb 2004
Last Activity: 28 August 2015, 12:38 PM EDT
Location: NM
Posts: 10,529
Thanks: 353
Thanked 880 Times in 818 Posts
note:
Code:
kill-9

should be
Code:
kill -9

What return code do you get:


Code:
ps -ef | grep pid
kill -9 pid
echo "return code is: $?"
ps -ef | grep pid

Please post the result
Sponsored Links
    #3  
Old Unix and Linux 02-06-2013
adilyos's Unix or Linux Image
adilyos adilyos is offline
Registered User
 
Join Date: Jan 2012
Last Activity: 31 July 2013, 8:28 AM EDT
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts
Thak you jim. The kill do not return any code.
    #4  
Old Unix and Linux 02-06-2013
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
 
Join Date: Feb 2004
Last Activity: 28 August 2015, 12:38 PM EDT
Location: NM
Posts: 10,529
Thanks: 353
Thanked 880 Times in 818 Posts

Code:
kill -9 25555
echo $?

has to show number. Period. It will return a 1 when the pid does not exist, or you do not have permissions to kill the process.

Something is completely wrong here. Please post EXACTLY what you type and what you get from those two commands. Otherwise this is not going to help you at all.
Sponsored Links
Closed Linux or Unix Question

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Shell Script to Kill Process(number of process) Unix/Solaris jonnyvic Shell Programming and Scripting 2 12-03-2009 01:44 PM
Kill a process without using kill command sudhamacs Linux 6 10-27-2008 12:36 PM
Kill a process without using kill command sudhamacs Shell Programming and Scripting 0 10-01-2008 05:19 PM
kill(0,-9) don't kill the process umen Programming 9 06-19-2007 06:09 AM
When kill doesnt work, how to kill a process ? VijayHegde UNIX for Advanced & Expert Users 3 05-12-2006 04:24 PM



All times are GMT -4. The time now is 06:17 PM.