You are not logged in.

#1 2009-08-19 22:55:56

yannickp
Member
Registered: 2009-06-18
Posts: 14
Website

Daemon and pidof

I wrote a script and now I want to run it as a daemon.
So I use the command pidof to get the PID of the running script. The problem is that pidof returns nothing.

A ps -A | grep my_script shows that the script is running.

Why I can't have the PID using pidof /usr/bin/my_script ?

Offline

#2 2009-08-19 23:06:44

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,231
Website

Re: Daemon and pidof

$$

Offline

Board footer

Powered by FluxBB