make less dumb
[public/csc-status.git] / irc
1 #!/bin/sh
2
3 script=`dirname $0`/run
4 D0=`$script`
5 R=$?
6 if [ $R -ne 0 ]; then
7         sleep 60
8         D="mimcpher: CSC System Failure: `$script`"
9         if [ $? -ne 0 ]; then
10                 echo $D
11                 echo $D | ircpipe irc.freenode.net \#csc
12         else
13                 echo "Intermittent failure: $D"
14         fi
15 fi