|
#!/bin/sh
|
|
|
|
script=`dirname $0`/run
|
|
D0=`$script`
|
|
R=$?
|
|
if [ $R -ne 0 ]; then
|
|
sleep 30
|
|
D="mimcpher: CSC System Failure: `$script`"
|
|
if [ $? -ne 0 ]; then
|
|
echo $D
|
|
echo $D | $HOME/bin/ircpipe irc.freenode.net \#csc-syscom
|
|
else
|
|
echo "Intermittent failure: $D0"
|
|
fi
|
|
fi
|