<div dir="ltr"><div><div><div>Have you tried running the script directly on your odroid to see if it outputs anything relevant?<br></div><br>You're calling sudo with no interaction. does sudo require a password on your odroid?<br><br></div>If you've started pd and jackd with the same user that runs this script you shouldn't have to call sudo. There is also a way to allow the user to call 'poweroff' but I forget how you set that up.. it might be a group that you have to be in.<br></div><br>-Alex<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 29, 2017 at 9:04 AM, Alexandros Drymonitis <span dir="ltr"><<a href="mailto:adrcki@gmail.com" target="_blank">adrcki@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I'm trying to shut down my Odroid-U3 by running a script through [shell].<div>It's very likely that my approach is not good, but here's what I'm doing:</div><div><br></div><div>I've created a directory /etc/my_scripts and in there I put the following script, called "shut_down.sh":</div><div><br></div><div>sudo pkill pd</div><div>sleep 3</div><div>sudo pkill jackd</div><div>sleep 3</div><div>sudo poweroff</div><div><br></div><div>I launch Jack (actually Qjackctl) and then Pd with -jack. In Pd I have this patch:</div><div><br></div><div>[sh /etc/my_scripts/shut_down.sh(</div><div>|</div><div>[shell]</div><div><br></div><div>On my Raspberry Pi it works, Pd is killed, jackd is killed, and the the Pi shuts down. But on the Odroid it doesn't work. Pd is killed but its windows stay open (I'm using the Odroid via SSH, if this is relevant), and Jack won't quit, and the Odroid won't shut down.</div><div><br></div><div>I'm on Pd-0.47-1 and a 14.04 LTS Ubuntu image on the Odroid. I've installed [shell] via apt-get.</div></div>
<br>______________________________<wbr>_________________<br>
<a href="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list" rel="noreferrer" target="_blank">https://lists.puredata.info/<wbr>listinfo/pd-list</a><br>
<br></blockquote></div><br></div>