Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[vdr] Re: Feature Request: SVDRP command "DONTSLEEP"
Guido Fiala wrote:
>
> > 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?
>
This is why i wrote "[w]hatever". The square brackets (which are also
shown in the output of ps) prevent grep from finding itself (since the
regexp [w]hatever doesn't match itself).
Ciao Ulrich
--
Info:
To unsubscribe send a mail to ecartis@linuxtv.org with "unsubscribe vdr" as subject.
Home |
Main Index |
Thread Index