How to Kill process with dynamic PID?

Hello,
I have problem with killing red5 process running on linux server. As this process is continuously changing its PID so it can't be killed with "kill -9 PID" command.
First I used following command to list RED5 process
ps aux | grep red5
which showed me
root 5832 0.0 0.0 4820 756pts/0 S+ 11:01 grep red5
when I used
kill -9 5832 (which is PID)
it showed me "No Such Process" message
then again I used "ps aux | grep red5"
I noticed PID is changed
root 6369 0.0 0.0 4820 756pts/0 S+ 11:01 grep red5
Please guide me how to kill this process.
Thanking You
Regards
ninadgac

Thre is no process running called red5 . You are getting the PID of grep.

check with

ps -aef | grep red5 | grep -v grep
1 Like

Yes you are right

with

ps -aef | grep red5 | grep -v grep

its showing nothing

Thanks for quick reply..

---------- Post updated at 06:36 AM ---------- Previous update was at 06:34 AM ----------

Do u have experience with RED5 installation on linux server?

the output which you are viewing is not red5 process, it is for grep process. ( which you are only initiating each time )

so, eliminating the grep process with -v option shows nothing. And it does not have anything to do with red5 installation..

1 Like

Thanks for reply