changeset 85:91e1a3a220d4

Suppressed the no screen found warnings
author Giulio Moro <giuliomoro@yahoo.it>
date Fri, 17 Jul 2015 23:12:09 +0100
parents dab53ea16bd1
children 7cc79d46ecb9
files scripts/build_project.sh scripts/run_project.sh scripts/setup_board.sh
diffstat 3 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/build_project.sh	Fri Jul 17 22:58:25 2015 +0100
+++ b/scripts/build_project.sh	Fri Jul 17 23:12:09 2015 +0100
@@ -67,7 +67,7 @@
 
 # Stop BeagleRT and clean out old source files
 echo "Stopping BeagleRT and removing old source files..."
-ssh -t -t $BBB_ADDRESS "screen -X -S BeagleRT quit ; pkill BeagleRT ; make sourceclean -C $BBB_PATH"
+ssh -t -t $BBB_ADDRESS "screen -X -S BeagleRT quit &>/dev/null; pkill BeagleRT ; make sourceclean -C $BBB_PATH"
 
 #concatenate arguments to form path.
 BBB_SOURCE_PATH= #initially empty, will be filled with input arguments
--- a/scripts/run_project.sh	Fri Jul 17 22:58:25 2015 +0100
+++ b/scripts/run_project.sh	Fri Jul 17 23:12:09 2015 +0100
@@ -42,7 +42,7 @@
 echo "Running BeagleRT..."
 if [ $RUN_IN_FOREGROUND -eq 0 ]
 then
-    ssh $BBB_ADDRESS "screen -X -S BeagleRT quit ; pkill BeagleRT ; sleep 0.5 ; screen -S BeagleRT -d -m $BBB_PATH/BeagleRT $COMMAND_ARGS"
+    ssh $BBB_ADDRESS "screen -X -S BeagleRT quit &>/dev/null; pkill BeagleRT ; sleep 0.5 ; screen -S BeagleRT -d -m $BBB_PATH/BeagleRT $COMMAND_ARGS"
 else
-    ssh -t $BBB_ADDRESS "screen -X -S BeagleRT quit ; pkill BeagleRT ; sleep 0.5 ; screen -S BeagleRT $BBB_PATH/BeagleRT $COMMAND_ARGS"
+    ssh -t $BBB_ADDRESS "screen -X -S BeagleRT quit &>/dev/null; pkill BeagleRT ; sleep 0.5 ; screen -S BeagleRT $BBB_PATH/BeagleRT $COMMAND_ARGS"
 fi
\ No newline at end of file
--- a/scripts/setup_board.sh	Fri Jul 17 22:58:25 2015 +0100
+++ b/scripts/setup_board.sh	Fri Jul 17 23:12:09 2015 +0100
@@ -44,7 +44,7 @@
 then
 # Stop BeagleRT if running and remove all files
   echo "Stopping BeagleRT and removing old files." 
-  ssh $BBB_ADDRESS "screen -X -S BeagleRT quit ; pkill BeagleRT; sleep 0.5 ; rm -rf $BBB_PATH ; mkdir $BBB_PATH"
+  ssh $BBB_ADDRESS "screen -X -S BeagleRT quit &>/dev/null; pkill BeagleRT; sleep 0.5 ; rm -rf $BBB_PATH ; mkdir $BBB_PATH"
 
 # Copy relevant files to BeagleBone Black
   echo "Copying new files to BeagleBone..."