[LAU] JACK netmanger to trigger the execution of a bash script on client connect/disconnect?

From: Athanasios Silis <athanasios.silis@email-addr-hidden>
Date: Mon Oct 16 2017 - 14:34:42 EEST

Hi all,
after starting JACK2 manually (no DBUS, no KX studio session or anything
automatic, other than starting it from /etc/rc.local on boot up) on jack
master server, I also start the netmanager and wait for jack clients to
connect.

jack_load netmanager

When clients connect I have them ssh to this jack master server and run a
script about what connections are necessary between the master's sound card
and the client's exposed ports.

This is fine and works if jack clients lose lose connection and have to
reconnect.

This does not work well when something is wrong with the jack master and
the audio is restarted. The clients will reconnect and the client will pop
up (f.e. in qjackctl), but the necessary connections will not be
reestablished. The ideal way to automate this would be to have jack master
take care of all its connections and have netmanager trigger the execution
of a script when a client connects.

How can I do that without using application requiring an X server (thus a
bash script)?? More specifically I want to know how I can trigger a script
that carries out the connections, not what should the script contain...

Thank you in advance for your help!

_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@email-addr-hidden
https://lists.linuxaudio.org/listinfo/linux-audio-user
Received on Mon Oct 16 16:15:02 2017

This archive was generated by hypermail 2.1.8 : Mon Oct 16 2017 - 16:15:02 EEST