Mercurial > hg > beaglert
view scripts/stop_running.sh @ 283:bfe2e929304b prerelease
Updated PRU code -- same idea for muxes 4-7
author | andrewm |
---|---|
date | Tue, 17 May 2016 18:31:43 +0100 |
parents | 8329f234d914 |
children | 8fecfcbaf2f0 |
line wrap: on
line source
#!/bin/bash # # This script stops the BeagleRT program running on the BeagleBone. BBB_ADDRESS="root@192.168.7.2" # The first command should be sufficient to stop any BeagleRT run with # these scripts; the second will catch any leftovers run other ways BELA_AUDIO_THREAD_NAME=beaglert-audio ssh $BBB_ADDRESS 'PID=`grep '"$BELA_AUDIO_THREAD_NAME"' /proc/xenomai/stat | cut -d " " -f 5 | sed s/\s//g`; if [ -z $PID ]; then printf ""; else echo "Killing old Bela process $PID"; kill -2 $PID; fi'