Cannot kill a process with kill -9 | Unix Linux Forums | Solaris

  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 Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 02-06-2013
adilyos's Avatar
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 02-06-2013
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
 
Join Date: Feb 2004
Last Activity: 27 November 2014, 9:01 PM EST
Location: NM
Posts: 10,283
Thanks: 288
Thanked 815 Times in 757 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 02-06-2013
adilyos's Avatar
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 02-06-2013
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
 
Join Date: Feb 2004
Last Activity: 27 November 2014, 9:01 PM EST
Location: NM
Posts: 10,283
Thanks: 288
Thanked 815 Times in 757 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 Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 02:44 PM
Kill a process without using kill command sudhamacs Linux 6 10-27-2008 01:36 PM
Kill a process without using kill command sudhamacs Shell Programming and Scripting 0 10-01-2008 06:19 PM
kill(0,-9) don't kill the process umen Programming 9 06-19-2007 07:09 AM
When kill doesnt work, how to kill a process ? VijayHegde UNIX for Advanced & Expert Users 3 05-12-2006 05:24 PM



All times are GMT -4. The time now is 07:01 AM.