<div>When I try to run irexec with the mythpowerbutton.sh script, I get this:</div>
<div>&nbsp;</div>
<div># irexec /usr/local/bin/mythpowerbutton.sh<br>irexec: bad file format, /usr/local/bin/mythpowerbutton.sh:2</div>
<div>&nbsp;</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>&nbsp;</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 &quot;:0&quot;` -ge 1 ]<br>then<br>&nbsp;&nbsp;&nbsp; if [ $STATUS -eq 0 ]<br>&nbsp;&nbsp;&nbsp; then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ( $PROG &amp; )<br>&nbsp;&nbsp;&nbsp; else<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; killall $PROG<br>&nbsp;&nbsp;&nbsp; fi<br>fi<br>exit 0</p>
<p>&nbsp;</p>
<p>Any ideas would be appreciated. Thanks.<br></p></div>