I'll post again. Seems like to be some errors on my MUA.

On 2002.09.22_14:30:41_+0000, Anders Åkesson wrote:
> 'sh -x try' gives:
> 
> [root@firewall] /root # sh -x try
> + ps axc
> + grep xntpd
> + [ -n  2569 root        892 S    grep xntpd  ]
> + echo not zero.
> not zero.
> + ps axc
> + grep getty
> + [ -n   721 root        948 S    /sbin/getty 38400 tty1
>   722 root        948 S    /sbin/getty 38400 tty2
> 18571 root        888 S    grep getty  ]
> + echo not zero.
> not zero.
> [root@firewall] /root #
> 
> Is it clearer now?
> 

Thanks for providing "debugging" of the script. You can try this:

$ ps axc | grep [x]ntpd

Put [ ] around xntpd.

Again, haven't tested on ash, just on ksh. But presuming it is a sh
compatible shell, it should work.

HTH

> /Anders
> 

-- 
H. D. Lee



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
------------------------------------------------------------------------
leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html

Reply via email to