comparison scripts/stop_running.sh @ 63:3ada83df91a5 newapi

Support stopping looped BeagleRT programs running within screen
author andrewm
date Wed, 15 Jul 2015 19:46:51 +0100
parents 3ffafa57302c
children 8329f234d914
comparison
equal deleted inserted replaced
62:a11e23f4e6af 63:3ada83df91a5
3 # This script stops the BeagleRT program running on the BeagleBone. 3 # This script stops the BeagleRT program running on the BeagleBone.
4 4
5 BBB_ADDRESS="root@192.168.7.2" 5 BBB_ADDRESS="root@192.168.7.2"
6 6
7 echo "Stopping BeagleRT..." 7 echo "Stopping BeagleRT..."
8 ssh $BBB_ADDRESS "kill -s 2 \`pidof BeagleRT\` 2>/dev/null" 8
9 # The first command should be sufficient to stop any BeagleRT run with
10 # these scripts; the second will catch any leftovers run other ways
11 ssh $BBB_ADDRESS "screen -X -S BeagleRT quit ; pkill BeagleRT"