Killing a process



In order to kill a process I am using pkill -9 -f ${PROCESS_NAME}
It usually works fine, but sometimes I get a feedback that the process
is not running while in fact it is running.

Is there another way to make sure the process is really down?

(Sorry, I'm kinda new to this thing...)

.



Relevant Pages

  • Summary: Killing a process with rapidly changing pid (without rebooting)
    ... Use ptree to find its parent and then kill that, ... If the name of the process is unique, you can use pkill: ... I wrote this script so that I can rapidly check a SAN LUN ...
    (SunManagers)
  • Re: Is there an industry standard Auditorium EQ thats quickly adjustable?
    ... harm anything - to let the feedback go until I find the slider to kill ... I would be impressed if you could pull a single slider down and kill ... frequency starts ringing and knock that out. ...
    (rec.audio.pro)
  • Re: Again about gprs
    ... > In my /usr/bin directory there's no file 'kill'. ... > There's a file named 'killall' and another named 'pkill', ... > and both contain the only word 'ELF'. ...
    (comp.protocols.ppp)
  • [opensuse] Re: Help Killling Process
    ... not to use kill -9 as a regular procedure. ... In place of kill it is imo better to use pkill / pgrep. ... will only list the processes called sshd AND owned by root. ...
    (SuSE)
  • RBAC problem
    ... I am trying to setup RBAC to kill and restart a process that is ... and I created a role called bouncews as: ... Now when try to kill the process of java as me, ... pkill: Failed to signal pid 17870: Not owner ...
    (SunManagers)