]> mj.ucw.cz Git - moe.git/blob - bin/mo-cycle
...
[moe.git] / bin / mo-cycle
1 #!/bin/sh
2
3 rm -rf solutions/mo* testing/mo*
4
5 for m in mo0{01,02,03,04,05,06,07,08,09,10,11,12,13,14,15} mo1{01,02,03,04,05,06,07,08,09,10,11,12,13,14,15,16,99} ; do
6         u=`echo $m | sed 's/^mo099/00/;s/^mo199/39/;s/^mo0//;s/^mo10/2/;s/^mo11/3/;s/^/mo/'`
7         echo -n "$m ($u): "
8         rm -rf tmp/grab
9         mkdir tmp/grab
10         pushd tmp/grab >/dev/null
11         ssh root@$m 'cd /aux/mo/users/mo39/mo39 ; tar czf - .' | tar xzf -
12         popd >/dev/null
13         if [ -d tmp/grab/.submit ] ; then
14                 if [ -d solutions/$u ] ; then
15                         echo -n "<DUP!!!>"
16                 else
17                         cp -a tmp/grab/.submit solutions/$u
18                         ( cd solutions/$u && ls )
19                 fi
20         fi
21         echo
22 done
23 bin/mo-ev-all fact power
24 bin/mo-score-hack --detail --html power fact >cycle.results.html
25 lynx -width 100 -dump cycle.results.html | sed '1,3d' >cycle.results.new
26 cat cycle.results.new | ssh root@mo101 'cat >/tmp/cycle.results.new && mv /tmp/cycle.results.new /tmp/cycle.results'
27 mv cycle.results.new cycle.results