<div>When I try to run irexec with the mythpowerbutton.sh script, I get this:</div>
<div> </div>
<div># irexec /usr/local/bin/mythpowerbutton.sh<br>irexec: bad file format, /usr/local/bin/mythpowerbutton.sh:2</div>
<div> </div>
<div>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:</div>
<div> </div>
<div>#!/bin/bash<br>PROG=mythfrontend<br>STATUS=`ps -e | grep $PROG | grep -v grep | wc -l | awk '{print $1}'`</div>
<div>
<p>if [ `echo $DISPLAY | grep -c ":0"` -ge 1 ]<br>then<br> if [ $STATUS -eq 0 ]<br> then<br> ( $PROG & )<br> else<br> killall $PROG<br> fi<br>fi<br>exit 0</p>
<p> </p>
<p>Any ideas would be appreciated. Thanks.<br></p></div>