Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F120543834
get-experiment
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Jul 5, 03:09
Size
1 KB
Mime Type
text/x-shellscript
Expires
Mon, Jul 7, 03:09 (2 d)
Engine
blob
Format
Raw Data
Handle
27199253
Attached To
R3704 elastic-yarn
get-experiment
View Options
#!/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
Log In to Comment