[PD] Best way to shut the system down with a script launched from Pd?

Alexandros Drymonitis adrcki at gmail.com
Wed Mar 29 18:04:56 CEST 2017


I'm trying to shut down my Odroid-U3 by running a script through [shell].
It's very likely that my approach is not good, but here's what I'm doing:

I've created a directory /etc/my_scripts and in there I put the following
script, called "shut_down.sh":

sudo pkill pd
sleep 3
sudo pkill jackd
sleep 3
sudo poweroff

I launch Jack (actually Qjackctl) and then Pd with -jack. In Pd I have this
patch:

[sh /etc/my_scripts/shut_down.sh(
|
[shell]

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.

I'm on Pd-0.47-1 and a 14.04 LTS Ubuntu image on the Odroid. I've installed
[shell] via apt-get.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20170329/9009eb4b/attachment.html>


More information about the Pd-list mailing list