From 5ded29bfbdcca05f20f34be926a105a490c61720 Mon Sep 17 00:00:00 2001 From: nemo Date: Wed, 15 Jul 2020 09:41:46 -0400 Subject: [PATCH] feat: attempt to enable verbose script logging feat: add some basic ssh tests fix: attempt to log remote output and get ssh output --- fil-proofs-tooling/scripts/run-remote.sh | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/fil-proofs-tooling/scripts/run-remote.sh b/fil-proofs-tooling/scripts/run-remote.sh index 9ef66eb379..0ee6cf58b4 100755 --- a/fil-proofs-tooling/scripts/run-remote.sh +++ b/fil-proofs-tooling/scripts/run-remote.sh @@ -1,9 +1,20 @@ #!/usr/bin/env bash -echo "Benchmark server: $2" +# First test if basic ssh to remote host is working +echo "ssh test1" +out=$(ssh $2 "echo Remote Host: $HOSTNAME") +echo $out +echo "ssh test2" +out=$(ssh $2 "ls /tmp") +echo $out +echo "ssh test3" +out=$(ssh $2 "which git") +echo $out +echo "ssh testing complete" CMDS=$(cat < $metrics_log 2>&1 && \ + cat $metrics_log && \ + rm $metrics_log