[pisa-src] r2559 - in trunk/tools/testbed/plugins/actions: get/node_hook put/node_hook

  • From: Samuel Richter <samuel.richter@xxxxxxxxxxxxxx>
  • To: pisa-src@xxxxxxxxxxxxx
  • Date: Wed, 27 Apr 2011 07:30:40 +0200

Author: richter
Date: Wed Apr 27 07:30:40 2011
New Revision: 2559

Log:
improve put and get actions of testbed environment

requires openssh

Modified:
   trunk/tools/testbed/plugins/actions/get/node_hook
   trunk/tools/testbed/plugins/actions/put/node_hook

Modified: trunk/tools/testbed/plugins/actions/get/node_hook
==============================================================================
--- trunk/tools/testbed/plugins/actions/get/node_hook   Wed Apr 27 07:22:16 
2011        (r2558)
+++ trunk/tools/testbed/plugins/actions/get/node_hook   Wed Apr 27 07:30:40 
2011        (r2559)
@@ -1,4 +1,5 @@
 #!/bin/sh
+SSH_OPTS=" -o ConnectTimeout=5 -o BatchMode=yes -o StrictHostKeyChecking=no -o 
LogLevel=quiet"
 for FILE in $ARGUMENTS; do
-    scp -P $SSH_PORT $SSH_USER@$SSH_HOST:$FILE .
+    scp $SSH_OPTS -P "${SSH_PORT:-22}" 
"${SSH_USER:-$USER}@${SSH_HOST:-pisa-$NODE}:$FILE" .
 done

Modified: trunk/tools/testbed/plugins/actions/put/node_hook
==============================================================================
--- trunk/tools/testbed/plugins/actions/put/node_hook   Wed Apr 27 07:22:16 
2011        (r2558)
+++ trunk/tools/testbed/plugins/actions/put/node_hook   Wed Apr 27 07:30:40 
2011        (r2559)
@@ -1,3 +1,6 @@
 #!/bin/sh
 
-scp -P "${SSH_PORT:-22}" "$BIN_PATH/openwrt-$TESTBED_NAME.bin" 
"${SSH_USER:-$USER}@${SSH_HOST:-$NODE}:/tmp"
+SSH_OPTS=" -o ConnectTimeout=5 -o BatchMode=yes -o StrictHostKeyChecking=no -o 
LogLevel=quiet"
+for FILE in $ARGUMENTS; do
+    scp $SSH_OPTS -P "${SSH_PORT:-22}" "$FILE" 
"${SSH_USER:-$USER}@${SSH_HOST:-pisa-$NODE}:/tmp"
+done
-- 
This is the pisa developer mailing list. Please also subscribe to the main pisa 
list at:
//www.freelists.org/list/pisa

Other related posts:

  • » [pisa-src] r2559 - in trunk/tools/testbed/plugins/actions: get/node_hook put/node_hook - Samuel Richter