[mythtv-users] Buttons & Shell scripts

Nick Morrott knowledgejunkie at gmail.com
Thu Jun 14 03:58:36 UTC 2007


On 13/06/07, Jordi Puig <jordipu at telefonica.net> wrote:

> If I execute in command line
> $ /usr/local/bin/Apachestart.sh
> it works fine
> But if I add a button in Util_Menu.xml
> ---------------------------------------------------
>     <button>
>        <type>WEBPAGE</type>
>        <text>Start Mythweb</text>
>        <action>EXEC '/usr/local/bin/Apachestart.sh'</action>
>     </button>
> ----------------------------------------------------
> Then, doesnt work
> If I try
> <action>EXEC sudo /sbin/service httpd start</action>
> also doesnt work
> What I'm doing wrong?

Try changing the button definition to:

<button>
    <type>WEBPAGE</type>
    <text>Start Mythweb</text>
    <action>EXEC sh /usr/local/bin/Apachestart.sh</action>
</button>

-- 
Nick

MythTV Official wiki:
http://mythtv.org/wiki/
MythTV users list archive:
http://www.gossamer-threads.com/lists/mythtv/users

"An investment in knowledge always pays the best interest." - Benjamin Franklin


More information about the mythtv-users mailing list