From: Martin Mares Date: Tue, 3 Jul 2007 12:27:10 +0000 (+0200) Subject: New script for distribution of feedback. X-Git-Tag: python-dummy-working~308 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=9b7bcd9b8fc6f97a34b007cfb730e63bf2ad0fdc;p=moe.git New script for distribution of feedback. --- diff --git a/bin/mo-push-feedback b/bin/mo-push-feedback new file mode 100755 index 0000000..403ed8b --- /dev/null +++ b/bin/mo-push-feedback @@ -0,0 +1,10 @@ +#!/bin/bash +set -e +while IFS=" " read LOGIN FULL MACH ; do + if [ -z "$1" -o "$1" == "$LOGIN" ] ; then + echo "$LOGIN -> $MACH" + D=/mo/users/$LOGIN/$LOGIN/ + rsync -av ~mo-eval/testing/$LOGIN root@$MACH:$D/results + ssh root@$MACH "cd $D && chown -R $LOGIN.$LOGIN results" + fi