<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I'm just guessing, but perhaps there is a issue when using EXEC with the pipe?<br>If so then you might try placing the pipe within it's own shell script.<br></blockquote><div><br></div><div>Turns out this was me being dumb! There was no problem with the pipe. The call to the shell script didn't have the full path to where it lived - doh! The command should have been:</div><div><span style="font-size:12.8px">EXEC cat /home/phill/.pme-password | sudo -kS <font color="#ff0000">/usr/local/bin/phill</font>/kodi_start_with_vpn.sh philledwards@gmail.com_au-syd_</span><wbr style="font-size:12.8px"><span style="font-size:12.8px">D29AC.conf</span><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Another approach would be to use a Kodi Addon to start and stop VPN<br>
connections from within Kodi.  See OpenVPN for Kodi<br>
<a href="https://github.com/brianhornsby/script.openvpn" rel="noreferrer" target="_blank">https://github.com/<wbr>brianhornsby/script.openvpn</a></blockquote><div><br></div><div>Thanks for the tip on this. I might have a play with it.  </div></div></div></div>