Mercurial > hg > beaglert
comparison 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 |
comparison
equal
deleted
inserted
replaced
62:a11e23f4e6af | 63:3ada83df91a5 |
---|---|
40 shift $((OPTIND-1)) | 40 shift $((OPTIND-1)) |
41 | 41 |
42 echo "Running BeagleRT..." | 42 echo "Running BeagleRT..." |
43 if [ $RUN_IN_FOREGROUND -eq 0 ] | 43 if [ $RUN_IN_FOREGROUND -eq 0 ] |
44 then | 44 then |
45 ssh $BBB_ADDRESS "kill -s 2 \`pidof BeagleRT\` 2>/dev/null ; sleep 0.5 ; screen -S BeagleRT -d -m $BBB_PATH/BeagleRT $COMMAND_ARGS" | 45 ssh $BBB_ADDRESS "screen -X -S BeagleRT quit ; pkill BeagleRT ; sleep 0.5 ; screen -S BeagleRT -d -m $BBB_PATH/BeagleRT $COMMAND_ARGS" |
46 else | 46 else |
47 ssh -t $BBB_ADDRESS "kill -s 2 \`pidof BeagleRT\` 2>/dev/null ; sleep 0.5 ; screen -S BeagleRT $BBB_PATH/BeagleRT $COMMAND_ARGS" | 47 ssh -t $BBB_ADDRESS "screen -X -S BeagleRT quit ; pkill BeagleRT ; sleep 0.5 ; screen -S BeagleRT $BBB_PATH/BeagleRT $COMMAND_ARGS" |
48 fi | 48 fi |