Fix some bugs

This commit is contained in:
Matthew McPherrin 2012-03-14 14:51:16 -04:00
parent e8a62158ea
commit 3a93d9c63d
2 changed files with 4 additions and 3 deletions

2
irc
View File

@ -8,7 +8,7 @@ if [ $R -ne 0 ]; then
D="mimcpher: CSC System Failure: `$script`"
if [ $? -ne 0 ]; then
echo $D
echo $D | ircpipe irc.freenode.net \#csc
echo $D | $HOME/bin/ircpipe irc.freenode.net \#csc
else
echo "Intermittent failure: $D"
fi

View File

@ -3,10 +3,10 @@
import sys, socket
services = [
('caffeine.csclub.uwaterloo.ca', [22, 25, 80, 110, 143, 143, 443, 465, 587, 993, 995]),
('caffeine.csclub.uwaterloo.ca', [22, 80, 443]),
('mail.csclub.uwaterloo.ca', [25, 80, 110, 110, 143, 143, 993, 465, 587, 993, 995]),
('artificial-flavours.csclub.uwaterloo.ca', [22, 389, 636]),
('taurine.csclub.uwaterloo.ca', [22]),
('natural-flavours.csclub.uwaterloo.ca', [22]),
('mirror.csclub.uwaterloo.ca', [21, 22, 80, 873]),
('denardo.csclub.uwaterloo.ca', [22]),
('corn-syrup.csclub.uwaterloo.ca', [22]),
@ -21,6 +21,7 @@ for S in services:
host = socket.gethostbyname(S[0])
for port in S[1]:
s = socket.socket()
s.settimeout(3)
s.connect( (host , port) )
s.close()
except socket.error, e: