summaryrefslogtreecommitdiff
path: root/ns3-simulations/simulate.org
diff options
context:
space:
mode:
authorLoic Guegan <manzerberdes@gmx.com>2019-05-06 12:05:15 +0200
committerLoic Guegan <manzerberdes@gmx.com>2019-05-06 12:05:15 +0200
commit9305e544d3c3b3ad49a47587616f2bde1dd8d323 (patch)
treefe905a3e7118e902d95a31677f9fffeb5ffbc7bb /ns3-simulations/simulate.org
parentf9d8e59ebbd697948f718f295bafa492f2d0947c (diff)
Debug+Add g5k logs
Diffstat (limited to 'ns3-simulations/simulate.org')
-rw-r--r--ns3-simulations/simulate.org6
1 files changed, 3 insertions, 3 deletions
diff --git a/ns3-simulations/simulate.org b/ns3-simulations/simulate.org
index c02aeca..ca6c266 100644
--- a/ns3-simulations/simulate.org
+++ b/ns3-simulations/simulate.org
@@ -147,10 +147,9 @@
[ "$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
@@ -232,6 +231,7 @@
*** Worker Node Script
Almost like the [[microBenchmarksSingle][single run script]] but with additionnal code to handle g5k simulation platform (arguments,logs etc..).
#+BEGIN_SRC sh :tangle ./g5k-worker.sh :shebang "#!/bin/bash" :noweb yes
+ export NS3_PATH=~/.bin/ns-3/ns-3.29/
g5kLogFolder="/tmp/logs/"
mkdir -p $g5kLogFolder # Create log folder just in case
rm -rf $g5kLogFolder/* # Clean previous logs just in case