[mythtv-users] Shutdown check (a few more things please)
David Brodbeck
gull at gull.us
Mon Dec 31 19:19:12 UTC 2007
On Dec 30, 2007, at 8:16 PM, Glen Hawksworth wrote:
> David, you answer is more of what I wanted but I will have to look up
> the proper usage of GREP. Thanks,
Something like:
if (ps ax | grep '[k]desktop' >/dev/null); then
exit
fi
should work. Putting one character of the pattern in square brackets
prevents the grep process itself from matching.
More information about the mythtv-users
mailing list