Kevin Kuphal wrote:
Jon Kunze wrote:
When I try to run irexec with the mythpowerbutton.sh script, I get this:
# irexec /usr/local/bin/mythpowerbutton.sh
irexec: bad file format, /usr/local/bin/mythpowerbutton.sh:2
I looked through the script file, and I can't seem to find any typos,
so I thought I'd ask for a second opinion. My script file looks like
this:
<snip>
For reference, this is the script I use to do this:
---
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
---
Works great
Kevin
_______________________________________________
mythtv-users mailing list
[email protected]
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
Whoops, forgot the last line which is just /usr/bin/mythfrontend to
start the process.
Kevin
--
Looking for affordable webhosting? http://www.sitecity.net
_______________________________________________
mythtv-users mailing list
[email protected]
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users