projects
/
scripts
/
scripts.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
different backups for primary and secondary
[scripts/scripts.git]
/
check_exam_results.sh
1
#!/bin/sh
2
# hackbard@hackdaworld.dyndns.org
3
#
4
# check exam results
5
# $1 resultfile (http)
6
# $2 your name/id
7
8
# example: run by cron every 5 minuites .. ;)
9
10
got_it="/usr/bin/mplayer -user hans -passwd wurst http://hackdaworld.dyndns.org/download/mp3db/atrak/killin_it.mp3"
11
12
file=`basename $1`
13
wget $1 2> /dev/null
14
if [ ! -z "`grep $2 $file`" ]; then
15
rm $file
16
$got_it
17
else
18
rm $file
19
fi
20