Mercurial > hg > beaglert
diff scripts/run_project.sh @ 63:3ada83df91a5 newapi
Support stopping looped BeagleRT programs running within screen
author | andrewm |
---|---|
date | Wed, 15 Jul 2015 19:46:51 +0100 |
parents | a11e23f4e6af |
children | 91e1a3a220d4 |
line wrap: on
line diff
--- a/scripts/run_project.sh Wed Jul 15 19:40:15 2015 +0100 +++ b/scripts/run_project.sh Wed Jul 15 19:46:51 2015 +0100 @@ -42,7 +42,7 @@ echo "Running BeagleRT..." if [ $RUN_IN_FOREGROUND -eq 0 ] then - ssh $BBB_ADDRESS "kill -s 2 \`pidof BeagleRT\` 2>/dev/null ; sleep 0.5 ; screen -S BeagleRT -d -m $BBB_PATH/BeagleRT $COMMAND_ARGS" + ssh $BBB_ADDRESS "screen -X -S BeagleRT quit ; pkill BeagleRT ; sleep 0.5 ; screen -S BeagleRT -d -m $BBB_PATH/BeagleRT $COMMAND_ARGS" else - ssh -t $BBB_ADDRESS "kill -s 2 \`pidof BeagleRT\` 2>/dev/null ; sleep 0.5 ; screen -S BeagleRT $BBB_PATH/BeagleRT $COMMAND_ARGS" + ssh -t $BBB_ADDRESS "screen -X -S BeagleRT quit ; pkill BeagleRT ; sleep 0.5 ; screen -S BeagleRT $BBB_PATH/BeagleRT $COMMAND_ARGS" fi \ No newline at end of file