2 # Distribute testing results (testing/$USER) to contestants' machines.
4 [ -f cf/mop ] || { echo "Missing config file, check cwd." ; exit 1 ; }
8 while IFS=" " read LOGIN FULL MACH ; do
9 if [ -z "$1" -o "$1" == "$LOGIN" ] ; then
10 echo "$LOGIN -> $MACH"
11 D=$MO_ROOT/users/$LOGIN/$LOGIN/
12 rsync -av ~mo-eval/testing/$LOGIN root@$MACH:$D/results
13 ssh root@$MACH "cd $D && chown -R $LOGIN.$LOGIN results"