Pidof not working properly
PROBLEM SOLVED
It seems that my pidof was kinda old and older versions can't get the pid when using full path. I updated it and now it's working like a charm. I hope that someone will find this thread usefull later when facing the same problem. Original post: Hi, I've a weird problem with pidof command in my FC3 box. I have a script in /home/coixi/test/startserver which starts another service in a loop. The problem is that when i do... Code:
pidof -x /home/coixi/test/startserver However, if i go to /home/coixi and do... Code:
pidof -x test/startserver I'm 100% sure that all paths are fine. /sbin is exported to $PATH so i can run it just with command pidof. I've tested this with few debian machines and now this one fedora is causing me a headache. System specs Distro: Fedora Core release 3 (Heidelberg) Kernel: 2.6.9-1.681_FC3 So, what can possibly cause that problem mentioned before? My hands are tied with this. |
/usr/bin/pgrep is another one and is runnable by all users
|
All times are GMT -5. The time now is 07:59 AM. |