Mercurial > hg > beaglert
annotate scripts/stop_running.sh @ 349:6e454ebd9cc4 prerelease
Removed libpd_queued
author | Giulio Moro <giuliomoro@yahoo.it> |
---|---|
date | Wed, 08 Jun 2016 01:55:25 +0100 |
parents | 8fecfcbaf2f0 |
children | 6e428d6b57ef |
rev | line source |
---|---|
andrewm@58 | 1 #!/bin/bash |
andrewm@58 | 2 # |
andrewm@58 | 3 # This script stops the BeagleRT program running on the BeagleBone. |
andrewm@58 | 4 |
andrewm@58 | 5 BBB_ADDRESS="root@192.168.7.2" |
giuliomoro@286 | 6 BBB_SCREEN_NAME="BeagleRT" |
andrewm@63 | 7 # The first command should be sufficient to stop any BeagleRT run with |
andrewm@63 | 8 # these scripts; the second will catch any leftovers run other ways |
giuliomoro@279 | 9 |
giuliomoro@279 | 10 BELA_AUDIO_THREAD_NAME=beaglert-audio |
giuliomoro@286 | 11 ssh $BBB_ADDRESS 'screen -X -S '"$BBB_SCREEN_NAME"' quit > /dev/null; 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' |