X-Git-Url: https://hackdaworld.org/gitweb/?a=blobdiff_plain;f=check_exam_results.sh;fp=check_exam_results.sh;h=23fda7147670db145d38d26e00ccdd5af0f725d8;hb=491c1bf8cbcd2d815ff5b29c335b5c11148a58f4;hp=0000000000000000000000000000000000000000;hpb=3740cd5c868ce60e099814c7295f00309f8c3ae5;p=scripts%2Fscripts.git diff --git a/check_exam_results.sh b/check_exam_results.sh new file mode 100755 index 0000000..23fda71 --- /dev/null +++ b/check_exam_results.sh @@ -0,0 +1,20 @@ +#!/bin/sh +# hackbard@hackdaworld.dyndns.org +# +# check exam results +# $1 resultfile (http) +# $2 your name/id + +# example: run by cron every 5 minuites .. ;) + +got_it="/usr/bin/mplayer -user hans -passwd wurst http://hackdaworld.dyndns.org/download/mp3db/atrak/killin_it.mp3" + +file=`basename $1` +wget $1 2> /dev/null +if [ ! -z "`grep $2 $file`" ]; then + rm $file + $got_it +else + rm $file +fi +