From 491c1bf8cbcd2d815ff5b29c335b5c11148a58f4 Mon Sep 17 00:00:00 2001 From: hackbard Date: Sat, 26 Jul 2003 16:20:29 +0000 Subject: [PATCH] simple script to check exam result --- check_exam_results.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 check_exam_results.sh 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 + -- 2.20.1