diff 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
line wrap: on
line diff
--- a/scripts/stop_running.sh	Wed Jul 15 19:40:15 2015 +0100
+++ b/scripts/stop_running.sh	Wed Jul 15 19:46:51 2015 +0100
@@ -5,4 +5,7 @@
 BBB_ADDRESS="root@192.168.7.2"
 
 echo "Stopping BeagleRT..."
-ssh $BBB_ADDRESS "kill -s 2 \`pidof BeagleRT\` 2>/dev/null"
\ No newline at end of file
+
+# The first command should be sufficient to stop any BeagleRT run with
+# these scripts; the second will catch any leftovers run other ways
+ssh $BBB_ADDRESS "screen -X -S BeagleRT quit ; pkill BeagleRT"
\ No newline at end of file