phyzzy/run.sh
2022-11-10 20:40:51 -05:00

12 lines
294 B
Bash
Executable file

#!/bin/sh
HERE=$(realpath $(dirname $0))
PIDFILE=$(mktemp -p /tmp --suffix .pdrun)
pd -stderr $@ -open $HERE/funsy.pd & echo $! > $PIDFILE
trap "{ EXITCODE=$?; rm -f $PIDFILE ; exit $EXITCODE; }" EXIT
sleep 1
#aconnect 'Keyboard' 'Pure Data'
aconnect 'MPKmini2' 'Pure Data'
wait $(<$PIDFILE)