The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Operating Systems > SUN Solaris
.
google unix.com



SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
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 06:19 PM
Kill Command sonali UNIX for Dummies Questions & Answers 4 01-03-2007 03:30 AM
the kill command kelogs1347 High Level Programming 2 11-23-2006 04:23 AM
kill command Rush UNIX for Dummies Questions & Answers 1 03-27-2003 04:54 PM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-21-2009
the_red_dove the_red_dove is offline
Registered User
  
 

Join Date: Aug 2009
Location: California
Posts: 23
Help with Kill Command

I am running Solaris 9. I have a problem with kill command. I'm sort of teaching myself so this might be a really stupid thing. I logged in as a normal user, lets say ABC, and then did "su" to root. After becoming root, I tried to kill the process started by ABC by saying

kill -9 "pid of ABC"

but the problem is, it is shutting off the entire session and logging off "root" too. Is this essentially killing the shell itself? If so, how do I stay logged in as root and kill the other users shell or specific processes??

Help appreciated, I'm new to this, I'm dumb so open to constructive criticism
  #2 (permalink)  
Old 10-22-2009
gnom gnom is offline
Registered User
  
 

Join Date: Feb 2008
Location: New Zealand
Posts: 66
When you kill the shell in which you switched to root, you kill everything.

You need to open a new shell and from there you can kill any other shell without beeing loged out.

Start the shell with ksh, bash, or whatever shell you prefer.
  #3 (permalink)  
Old 10-22-2009
frank_rizzo frank_rizzo is offline Forum Advisor  
Resident BOFH
  
 

Join Date: Dec 2007
Posts: 430
here is another tip - don't get in the habit of using -9 (SIGKILL) every time you need to kill a process. This does not allow a process to shutdown normally and can cause problems. using -9 can be avoided in most situations and should really never be a first choice unless you know why your doing it.

Last edited by frank_rizzo; 10-22-2009 at 12:38 AM.. Reason: correct spelling error
  #4 (permalink)  
Old 10-22-2009
the_red_dove the_red_dove is offline
Registered User
  
 

Join Date: Aug 2009
Location: California
Posts: 23
@gnom: I guess I didn't start the new shell properly. I do remember changing to ksh, so, I am assuming I screwed up the command!! Thanks anyway.

@frank_rizzo: I am just getting started and my man pages are not set up right (I screwed up while installing too). Most forums suggested kill -9 to kill things quickly. So, it's not the proper way eh? I'll get there some day!! Thanks for the tip.
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are On




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


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0