[mythtv-users] Buttons & Shell scripts

Jordi Puig jordipu at telefonica.net
Thu Jun 14 09:18:04 UTC 2007


Changing the button definition, adding sh, dont work
Could be something about owner, group..... ?
Both shell scripts are root,root
Who is executing when i put in a button?, I think is mythtv

Jordi
El 14/06/2007, a las 05:58, Nick Morrott escribió:

> 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
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users



More information about the mythtv-users mailing list