LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

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

Rep: Reputation: 0
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
...pidof doesn't output the pid even if it exists.

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

Code:
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
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

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


Reply

Tags
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


All times are GMT -5. The time now is 01:22 AM.

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