Page MenuHomec4science

get-experiment
No OneTemporary

File Metadata

Created
Tue, Feb 25, 12:30

get-experiment

#!/bin/bash
if [ $# -eq 0 ]
then
echo "Give param list of archives to get"
exit
fi
IDEXP=$1
DIRX=exp$IDEXP
mkdir $IDEXP
cd $IDEXP
mkdir DATAFILES
#while [ 1 -gt 0 ]
#do
# DIRX=$1;
# if [ "$DIRX" == "" ]
# then
# break
# fi
#shift
#mkdir $DIRX;
#cd $DIRX;
ssh dinuflor@dco-head001.dco.ethz.ch "cd temp; scp -i ~/.ssh/k root@dco-node161:/HDD-2TB/results-YARN-utility/arch/$DIRX.tgz ."
scp dinuflor@dco-head001.dco.ethz.ch:temp/$DIRX.tgz .;
tar xzvf $DIRX.tgz;
rm $DIRX.tgz
mv *.tmem *.cdf DATAFILES
#mv * ..
#cp ../exp-plotter .
#EXP_ID=`find | grep cdf | head -n 1 | tr "-" " " | awk '{print $1}'`
#./exp-plotter $EXP_ID
#cd -
#rmdir $DIRX
#done
ls | grep penalty | tail -n +2 | xargs rm -fr
echo "Now GNU-plotting results"
gnuplot ../plotall.gp; mv plotall.png $IDEXP-plotall.png
gnuplot ../plotavgcdf.gp; mv plotavgcdf.png $IDEXP-plotavgcdf.png
#gnuplot ../plotavgcu.gp; mv plotavgcu.png $IDEXP-plotavgcu.png
gnuplot ../plotcuall.gp; mv plotcuall.png $IDEXP-plotcuall.png
PENALTY=`ls | grep '^z'`
TRACE_ID=`ls | grep TRACE.*trace$ | grep -o '[0-9]\+.trace' | sed 's/.trace//g'`
cd ..
mv $IDEXP $IDEXP-$PENALTY-$TRACE_ID

Event Timeline