![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
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 ![]() |
|
||||
|
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. |
|
||||
|
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 |
|
||||
|
@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. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|