LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Unable to kill a process (https://www.linuxquestions.org/questions/linux-newbie-8/unable-to-kill-a-process-671374/)

bibinskariah 09-21-2008 09:40 AM

Unable to kill a process
 
[root@localhost crclient]# ./crclient -u PKT1800
./crclient: already logged in with process id 3202

[root@localhost crclient]# kill -9 3202

bash: kill: (3202) - No such process


[root@localhost crclient]# ps -ax|grep crclient
Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.7/FAQ
3108 pts/1 R+ 0:00 grep crclient

There is no process with id 3202. How can i terminate the process id(3202).

crabboy 09-21-2008 10:14 AM

use 'ps ax' without the dash, but I would try this:

ps -ef | grep crclient

More than likely the process you seek has a new PID or it has died.

Uncle_Theodore 09-21-2008 10:15 AM

If you're sure that there's no such process, probably, the program left a lock file somewhere in the system, that needs to be removed. Look in /tmp or /var/run, the file probably has the .pid extension or is called lock.

krishnasut 05-26-2009 09:21 PM

This is the solution !!
 
Just delete a file generated by the program crclient . It could be found in /tmp directory.


ENJOY GURU !!


All times are GMT -5. The time now is 07:20 PM.