projects
/
scripts
/
scripts.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3740cd5
)
simple script to check exam result
author
hackbard
<hackbard>
Sat, 26 Jul 2003 16:20:29 +0000
(16:20 +0000)
committer
hackbard
<hackbard>
Sat, 26 Jul 2003 16:20:29 +0000
(16:20 +0000)
check_exam_results.sh
[new file with mode: 0755]
patch
|
blob
diff --git a/check_exam_results.sh
b/check_exam_results.sh
new file mode 100755
(executable)
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
+