[mythtv-users] Mythshutdown program
Phill Edwards
philledwards at gmail.com
Mon Mar 6 11:45:36 UTC 2006
> Phil - I wonder if this would not be a tad more efficient. I do not have
> my box installed yet but have been lurking for a couple of days:
> COMMFLAG='pgrep mythcommflag`
> ...
>
> if [ ! "$COMMFLAG" ] ...
>
> pgrep will return the pids of matching processes or null if not found.
> Then I think simply testing for untrueness should do the same thing as
> what you are doing.
Thanks - it looks a bit neater. I'll give it a go.
Regards,
Phill
More information about the mythtv-users
mailing list