csc-status/irc

16 lines
271 B
Plaintext
Raw Permalink Normal View History

2012-03-12 09:25:01 -04:00
#!/bin/sh
script=`dirname $0`/run
D0=`$script`
R=$?
if [ $R -ne 0 ]; then
2012-03-13 13:04:49 -04:00
sleep 30
2012-03-12 09:25:01 -04:00
D="mimcpher: CSC System Failure: `$script`"
if [ $? -ne 0 ]; then
echo $D
2012-10-18 13:28:03 -04:00
echo $D | $HOME/bin/ircpipe irc.freenode.net \#csc-syscom
2012-03-12 09:25:01 -04:00
else
echo "Intermittent failure: $D0"
2012-03-12 09:25:01 -04:00
fi
fi