[mythtv-users] EXEC command in MythTV menu

Curtis Gedak gedakc at gmail.com
Tue Nov 7 16:30:22 UTC 2017


Hi Phill,

On 2017-11-07 02:34 AM, Phill Edwards wrote:
> I'm trying to call Kodi from a MythTV menu. The menu runs an EXEC command
> to run a shell script which:
> 
> a) starts up a VPN connection on the Mythfrontend machine, and then
> b) runs Kodi
> 
> When I run the command manually from a command prompt (minus the "EXEC")
> everything works fine. But when I select the menu item nothing happens. The
> menu command is:
> 
> EXEC cat /home/phill/.pme-password | sudo -kS ./kodi_start_with_vpn.sh
> philledwards at gmail.com_au-syd_D29AC.conf
> 
> Any suggestions as to why it works from a command prompt but not from the
> MythTV menu? Or how I can get some debug info to find out what's going on?

I'm just guessing, but perhaps there is a issue when using EXEC with the
pipe?

If so then you might try placing the pipe within it's own shell script.

Another approach would be to use a Kodi Addon to start and stop VPN
connections from within Kodi.  See

OpenVPN for Kodi
https://github.com/brianhornsby/script.openvpn


If it is of any help, I wrote a tutorial on Kodi and MythTV.  See

Installing Kodi Media Center as a Menu in MythTV
http://gedakc.users.sourceforge.net/display-doc.php?name=pvr-kodi-and-mythtv

Curtis


More information about the mythtv-users mailing list