LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   How to Kill The Process Without Kill Command ? (https://www.linuxquestions.org/questions/linux-server-73/how-to-kill-the-process-without-kill-command-4175439239/)

bala.linuxtech 11-28-2012 11:18 PM

How to Kill The Process Without Kill Command ?
 
Guyz,

I am using RHEL 5.4 Linux Box ..
Please Suggest me, How to kill the Process Without Using Kill Command ? Is it possible ?

Regards
Bala

tailinlinux 11-28-2012 11:27 PM

Quote:

Originally Posted by bala.linuxtech (Post 4839225)
Guyz,

I am using RHEL 5.4 Linux Box ..
Please Suggest me, How to kill the Process Without Using Kill Command ? Is it possible ?

Regards
Bala

Yes it is possible.
You can use manual.

bala.linuxtech 11-28-2012 11:52 PM

Quote:

Originally Posted by tailinlinux (Post 4839229)
Yes it is possible.
You can use manual.

hi tailinlinux

can use manual .., How ??

Please give me one example

Regards
Bala

tailinlinux 11-30-2012 12:25 AM

1 Attachment(s)
iam using mandriva 2010.2 i dont know if it is same with your distro.

To kill process without using commands on terminal.
You can go to System Monitor. You can found it on system tab, and located on Administration.

Hope this help.

i will provide screenshot for you to see.

bala.linuxtech 11-30-2012 01:05 AM

Quote:

Originally Posted by tailinlinux (Post 4839973)
iam using mandriva 2010.2 i dont know if it is same with your distro.

To kill process without using commands on terminal.
You can go to System Monitor. You can found it on system tab, and located on Administration.

Hope this help.

i will provide screenshot for you to see.

Hi tailinlinux

Thanks ..

bala.linuxtech 11-30-2012 01:30 AM

Quote:

Originally Posted by bala.linuxtech (Post 4839990)
Hi tailinlinux

Thanks ..


Hi tailinlinux

RHEL Supporting Kill the Process via that GNOME Monitor Tool and Could you please tell me, IS any other command is available in linux exactly in RHEL to kill a process ?

Thanks in advance

Regards
Bala.Linuxtech

rknichols 11-30-2012 10:59 AM

Perhaps you could explain just what your objection is to the kill command. The only way to kill a process is to send that process a signal that causes it to terminate. The rather poorly named "kill()" system call is the way to send a signal (which could be SIGKILL, SIGTERM, or any other signal) to a process, and the kill command (or its built-in equivalent in most shells) is the user interface to that system call. Any method of killing a process is going to use that same mechanism. If you're doing this from within a C program, you can just use the kill() system call. Otherwise, just what is the issue with using the kill command?

Habitual 11-30-2012 11:50 AM

How to kill without the kill command
 
Code:

ps aux | grep bird | egrep -v "/bin/sh|grep"
Your *grep and/or "ps aux" may be different!...

outputs:
Code:

jj      32428 55.2  0.8 368556 68796 ?        Rl  12:37  4:36 /usr/lib/thunderbird-3.1.9/thunderbird-bin
Enter the .fu!
Code:

fuser -k /usr/lib/thunderbird-3.1.9/thunderbird-bin
Sounds like an "educational" Question to me, but I enjoyed the challenge. :)

unSpawn 11-30-2012 12:34 PM

Quote:

Originally Posted by Habitual (Post 4840325)
Code:

ps aux | grep bird | egrep -v "/bin/sh|grep"

Auch! Do try:
Code:

ps -C bird
or better:
Code:

pgrep bird

Habitual 11-30-2012 01:28 PM

Chris:
fuser requires the /path/to/open_handle
so to keep in the spirit of the OP to "not use" kill, that's what I came up with.

Thanks!

JJ


All times are GMT -5. The time now is 09:11 AM.