![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| killing the process | arthi | UNIX for Dummies Questions & Answers | 3 | 06-03-2008 05:57 AM |
| Killing of a process and send a mail if the process doesnot come up within 2 minutes | Prince89 | Shell Programming and Scripting | 1 | 02-15-2008 03:10 PM |
| Reg process of killing | shanshine | SUN Solaris | 6 | 12-05-2007 10:50 AM |
| Killing specific process | benefactr | Shell Programming and Scripting | 6 | 10-25-2007 09:23 AM |
| killing a process pid | jo calamine | UNIX for Advanced & Expert Users | 16 | 12-04-2006 03:43 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
killing a process
I can kill running processes on my linux red hat system using ctrl-c but cannot do it from command line of another terminal using kill -2 pid. Although I can kill them from command line using kill -9 pid and other signals. I would like to do it using the kill -2 pid.
Thanks for your suggestions |
| Forum Sponsor | ||
|
|
|
|||
|
kill -SIGINT pid does not work, I get error saying "SIGINT unknown signal". then I typed kill -l to see list of options. Among several options were INT and TERM.
kill -TERM PID killed the process and so did kill -9 pid. But kill -2 pid and kill -INT pid fail. kill -HUP pid also works. It maybe that all the kill options are not active on my system? Thanks for your response. |
|
|||
|
With the cmd line kill tool the symbols are INT, TERM, HUp, QUIT etc, as in the SIGxxx without the SIGxxx.
Any process can choose to ignore signals if it so wants (apart from 9). You still need permission to send a signal, trying with signal zero will tell you if you have those permissions. |
|
|||
|
Quote:
Sending signal 0 to process will indicate only ' whether a process is alive or not and not about the permissions the users has with respect to the process '. When a normal user sends signal to a process which is running as process owned by ' root ' ALIVE status ( indicating that the process is running ) would be returned. |
|
|||
|
Quote:
Code:
bash-3.00$ kill -0 515 bash: kill: (515) - Not owner |
| Tags |
| linux |
| Thread Tools | |
| Display Modes | |
|
|