[mythtv-users] Wife Acceptance Factor question: dealing with
crashes
Tom Dombrosky
tbdombrosky at gmail.com
Wed Oct 20 20:39:36 UTC 2004
I have a script that I use to kill and restart mythfrontend whenever a
button is pushed on the remote. It works like a charm. Just put it
in your .lircrc file and use irexec to execute the script.
Here's the script:
MYTHEXISTS=`/bin/ps -e | grep mythfrontend | grep -v grep | awk '{print $1}'`;
if [ "$MYTHEXISTS" != "" ]; then
for MYTHPROCESS in `/bin/ps -e | grep mythfrontend | grep -v
grep | awk '{print $1}'`
do
echo $MYTHPROCESS;
kill -9 $MYTHPROCESS;
done
fi
/usr/bin/mythfrontend &
More information about the mythtv-users
mailing list