Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 07-31-2006, 06:12 AM   #1
LQ Newbie
Registered: Jul 2006
Posts: 1

Rep: Reputation: 0
Pidof not working properly


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:


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...

pidof -x /home/coixi/test/startserver
...pidof doesn't output the pid even if it exists.

However, if i go to /home/coixi and do...

pidof -x test/startserver
...pidof returns the pid normally.

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.

Last edited by Coixi; 07-31-2006 at 08:21 AM.
Old 07-31-2006, 09:03 AM   #2
Senior Member
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
/usr/bin/pgrep is another one and is runnable by all users


full, path, pid

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Bash programming - using pidof sceadu Programming 4 07-26-2005 01:03 AM
X not working properly. MylesCLin Linux - Software 1 09-15-2004 10:46 AM
pidof -o %PPID program vanalex Linux - General 2 01-26-2004 09:35 PM
how to get PID without using pidof command? ruchika Programming 2 09-22-2003 03:12 PM
Psmisc, pidof - Ch 6.56.2, Sysvinit or not? itsjustme Linux From Scratch 1 07-28-2003 06:57 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:09 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration