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 including the "debugging" info when running the script. You will want to try this: ps axc | grep [x]ntpd put [ ] surrounding the x. Again, haven't tested with ash. I am not familiar with it. But presumed that it is a sh compatible shell, it will 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