On Sat, Sep 09, 2000, Robert D. Hilliard wrote:
> Adam McKenna <[EMAIL PROTECTED]> writes:
> 
> > >      ps ax|grep <daemon-name>|grep -v grep works for me.
> > 
> > if [ "`pidof <daemon>`" ] ; then
> 
>      For some reason pidof doesn't work on the dictd daemon, so it may
> not work on others as well.  See Bug#67021.

   Then I suggest the following :

      ps ax | grep '[ ]'<daemon-name>

   I think the 'grep -v grep' kludge usually taught should be avoided.

Sam.
-- 
Samuel Hocevar <[EMAIL PROTECTED]>                     
http://www.via.ecp.fr/~sam/
dig goret.org @zoy.org axfr \
  | perl -e 'for(sort(<>)){print pack("H32",$1) if(/^c..\.(\w+)/)}' | gzip -d


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to