killing mpv + cyclone loading

master
ugrnm 8 years ago
parent 3a0855b8cf
commit 1b7894e147

@ -6,7 +6,7 @@ FLOPPY="/media/floppy"
MAINPY="${FLOPPY}/main.py" MAINPY="${FLOPPY}/main.py"
PYRUN="python ${MAINPY}" PYRUN="python ${MAINPY}"
MAINPD="${FLOPPY}/main.pd" MAINPD="${FLOPPY}/main.pd"
PDRUN="pd -lib import -path /usr/local/lib/pd-externals/net/ -path /usr/local/lib/pd-externals/osc/ -lib osc -lib udpreceive -oss -r 48000 -rt -nogui ${MAINPD}" PDRUN="pd -lib import -path /usr/local/lib/pd-externals/net/ -path /usr/local/lib/pd-externals/osc/ -path /usr/lib/pd/extra/cyclone -lib osc -lib udpreceive -oss -r 48000 -rt -nogui ${MAINPD}"
stdbuf -oL -- udevadm monitor --udev -p ${FD} | while read -r -- STATE _ _ _ _ stdbuf -oL -- udevadm monitor --udev -p ${FD} | while read -r -- STATE _ _ _ _
do do
@ -35,11 +35,15 @@ do
pkill -9 python pkill -9 python
fi fi
if [ "$(pgrep -f '^pd')" ] if [ "$(pgrep -f '^pd')" ]
then then
echo "pd still running ... killing" echo "pd still running ... killing"
pkill -9 pd pkill -9 pd
fi fi
if [ "$(pgrep -f '^mpv')" ]
then
echo "mpv still running ... killing"
pkill -9 mpv
fi
fi fi
fi fi
done done

Loading…
Cancel
Save