Re: [PD] help on bash script

2020-11-09 Thread Jakob Laue
thanks, jack!     Gesendet: Montag, 09. November 2020 um 14:00 Uhr Von: "Jack" An: pd-list@lists.iem.at Betreff: Re: [PD] help on bash script Here a bash script I used to use. You can adapt it for your needs : #!/bin/bash chemin1=$(dirname "$0")/PH.pd sudo etherwake C8:60

Re: [PD] help on bash script

2020-11-09 Thread Jakob Laue
Gesendet: Montag, 09. November 2020 um 13:59 Uhr Von: "Peter P." An: pd-list@lists.iem.at Betreff: Re: [PD] help on bash script * Roman Haefeli [2020-11-09 13:25]: [...] > Poor man's solution: > > put a 'sleep 5' after starting Pd. This of course introduces a race cond

Re: [PD] help on bash script

2020-11-09 Thread Jack
Here a bash script I used to use. You can adapt it for your needs : #!/bin/bash chemin1=$(dirname "$0")/PH.pd sudo etherwake C8:60:00:2D:48:50 sleep 1 pd -nosleep -noaudio -alsamidi -midiindev 0,1 -midioutdev 0 -open $chemin1 & sleep 1 KA=$(aconnect -i | grep "Pure Data") while [ "$KA" = "" ] do

Re: [PD] help on bash script

2020-11-09 Thread Peter P.
* Roman Haefeli [2020-11-09 13:25]: [...] > Poor man's solution: > > put a 'sleep 5' after starting Pd. This of course introduces a race condition. Might almost always work™. > A slightly more advanced way: > > while ! aconnect --list | grep "Pure Data"; do sleep 0.1; > > Put that

Re: [PD] help on bash script

2020-11-09 Thread Roman Haefeli
On Mon, 2020-11-09 at 12:54 +0100, Jakob Laue wrote: > Hey friends, > i have a raspberry pi that executes a bash script on startup. Inside > this bash script I want two things to happen. > 1) start my pd patch > 2) connect my launchpad mini (connected via usb) to pd using the > aconnect-command >

Re: [PD] help on bash script

2020-11-09 Thread Peter P.
* Jakob Laue [2020-11-09 12:54]: > Hey friends, > i have a raspberry pi that executes a bash script on startup. Inside this bash > script I want two things to happen. > 1) start my pd patch > 2) connect my launchpad mini (connected via usb) to pd using the > aconnect-command Have you tried

[PD] help on bash script

2020-11-09 Thread Jakob Laue
Hey friends, i have a raspberry pi that executes a bash script on startup. Inside this bash script I want two things to happen. 1) start my pd patch 2) connect my launchpad mini (connected via usb) to pd using the aconnect-command     ..i think i have to use aconnect because in pd itself i