# HG changeset patch # User andrewm # Date 1436983758 -3600 # Node ID afc593f7469e3b71b117d80366a791158d0d0ad7 # Parent ad6b2767beafe879dd4510f78ffbecf7c6dc264c Add ability to connect to a running BeagleRT project using screen diff -r ad6b2767beaf -r afc593f7469e scripts/build_project.sh --- a/scripts/build_project.sh Wed Jul 15 18:53:10 2015 +0100 +++ b/scripts/build_project.sh Wed Jul 15 19:09:18 2015 +0100 @@ -77,5 +77,5 @@ ssh $BBB_ADDRESS "make all -C $BBB_PATH" else echo "Building and running project..." - ssh $BBB_ADDRESS "make all -C $BBB_PATH ; screen -d -m $BBB_PATH/BeagleRT $COMMAND_ARGS" + ssh $BBB_ADDRESS "make all -C $BBB_PATH ; screen -S BeagleRT -d -m $BBB_PATH/BeagleRT $COMMAND_ARGS" fi \ No newline at end of file diff -r ad6b2767beaf -r afc593f7469e scripts/connect_to_project.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/scripts/connect_to_project.sh Wed Jul 15 19:09:18 2015 +0100 @@ -0,0 +1,8 @@ +#!/bin/bash +# +# This script brings an already running BeagleRT program to the foreground +# in the terminal, so it can be run interactively. + +BBB_ADDRESS="root@192.168.7.2" + +ssh -t $BBB_ADDRESS "screen -S BeagleRT -r" \ No newline at end of file diff -r ad6b2767beaf -r afc593f7469e scripts/run_project.sh --- a/scripts/run_project.sh Wed Jul 15 18:53:10 2015 +0100 +++ b/scripts/run_project.sh Wed Jul 15 19:09:18 2015 +0100 @@ -35,4 +35,4 @@ shift $((OPTIND-1)) echo "Running BeagleRT..." -ssh $BBB_ADDRESS "kill -s 2 \`pidof BeagleRT\` 2>/dev/null ; sleep 0.5 ; screen -d -m $BBB_PATH/BeagleRT $COMMAND_ARGS" \ No newline at end of file +ssh $BBB_ADDRESS "kill -s 2 \`pidof BeagleRT\` 2>/dev/null ; sleep 0.5 ; screen -S BeagleRT -d -m $BBB_PATH/BeagleRT $COMMAND_ARGS" \ No newline at end of file