[BusyBox] ash and grep with busybox 1.00
Vladimir N. Oleynik
dzo at simtreas.ru
Mon Feb 21 16:10:20 UTC 2005
Florian,
> ps aux | grep -c "/usr/sbin/telnetd"
> 1
> ps aux | grep -c "/usr/sbin/telnetd"
> 2
> ash does not like >= operator ? Or am I wrong with the ash operators ?
busybox`s
1) ps have not "aux" options
2) grep have not "c" option
3) ash have not builtin test command
You can use, for example
ps | grep "/usr/sbin/telnetd" | grep -v grep
exist=$?
if [ exist = 0 ]; then
tel="on"
else
tel="off"
fi
--w
vodz
More information about the busybox
mailing list