From 9305e544d3c3b3ad49a47587616f2bde1dd8d323 Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Mon, 6 May 2019 12:05:15 +0200 Subject: Debug+Add g5k logs --- ns3-simulations/g5k-root.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'ns3-simulations/g5k-root.sh') diff --git a/ns3-simulations/g5k-root.sh b/ns3-simulations/g5k-root.sh index 0ec56b2..db6bc0f 100755 --- a/ns3-simulations/g5k-root.sh +++ b/ns3-simulations/g5k-root.sh @@ -13,10 +13,9 @@ logsFinalDst=~/logs/ [ "$1" == "deploy" ] && deploy=1 || deploy=0 [ "$1" == "-p" ] && progress=1 || progress=0 - - handleSim () { - outF="$simArgsLoc/$(uuidgen).sh" # Args file based on host name (avoid conflict) + [ -z "${argId}" ] && argId=1 || argId=$(( argId + 1 )) + outF="$simArgsLoc/${argId}.sh" # Args file based on host name (avoid conflict) # Add Shebang echo '#!/bin/bash' > $outF -- cgit v1.2.3