I have this<br>
<br>
begin<br>
prog = irexec<br>
button = OFF<br>
repeat = 4<br>
config = /usr/local/bin/mythpowerbutton.sh<br>
end<br>
<br>
Assigned to my power button, just the same as Jarod's guide, and yet
when I press the button, it doesn't shutdown mythfrontend, nor does it
restart it if it has crashed. Hence my tring to execute it manually.<br><br><div><span class="gmail_quote">On 11/3/05, <b class="gmail_sendername">Neil Bird</b> &lt;<a href="mailto:neil@fnxweb.com">neil@fnxweb.com</a>&gt; wrote:
</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Around about 03/11/05 12:35, Jon Kunze typed ...<br>&gt; $irexec /usr/local/bin/mythpowerbutton.sh
<br>&gt; That is when i get the error on line 2 (or atleast I assume the :2 means<br>&gt; that the error is on line two.<br><br>&nbsp;&nbsp; irxec takes a config. file, not an executable argument (man irexec).<br><br>&nbsp;&nbsp; You want 'irexec --daemon' with the following somewhere in your ~/.lircrc:
<br><br># Power Off/Exit<br>##begin<br>##prog = mythtv<br>##button = OFF<br>##config = Esc<br>##end<br>begin<br>prog = irexec<br>button = OFF<br>repeat = 4<br>config = /usr/local/bin/mythpowerbutton.sh<br>end<br><br><br>&nbsp;&nbsp; Ref. 
<a href="http://wilsonet.com/mythtv/tips.php">http://wilsonet.com/mythtv/tips.php</a><br><br>--<br>[neil@fnx ~]# rm -f .signature<br>[neil@fnx ~]# ls -l .signature<br>ls: .signature: No such file or directory<br>[neil@fnx
 ~]# exit<br><br><br>_______________________________________________<br>mythtv-users mailing list<br><a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br><a href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users">
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users</a><br><br><br></blockquote></div><br>