Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[vdr] Re: Feature Request: SVDRP command "DONTSLEEP"
> if ps -A | grep [w]hatever > /dev/null 2>&1 ; then
does'nt this give always true, as the the grep returns the line of this
commandline itself?
usually a
ps -A | grep "^whatever"
should be better (whatever then needs to be at the beginning of the
commandline)
or
ps -A | grep "whatever" | grep -v "^grep"
filters out the unwanted line containing grep... jm2c
--
Info:
To unsubscribe send a mail to ecartis@linuxtv.org with "unsubscribe vdr" as subject.
Home |
Main Index |
Thread Index