legere modif de l'autologout

darcs-hash:20071111122318-f6463-bcd2493aa12c5d10b08e987cd921ea322cac749b.gz
This commit is contained in:
cohen 2007-11-11 13:23:18 +01:00
parent 6fd639385f
commit fa1627199f

View file

@ -10,13 +10,16 @@ for w in commands.getoutput("w -h").split('\n') :
# on splite
w = sre.split(' *', w)
if w[0] in ['cohen','segaud']:
continue
# on verifie que c'est une connection du bde
hosts = ['bde.crans.org','cableur.crans.org','cableuse.crans.org']
hosts = ['bde.crans.org','cableur.crans.org','cableuse.crans.org','venus.crans.org']
if w[2] not in [ h[0:16] for h in hosts ] :
continue
# on verifie qu'on a depase le timeout
if sre.match('^\d*\.\d*s$',w[4]) or sre.match('^[0-4]:\d*$',w[4]) :
if sre.match('^\d*\.\d*s$',w[4]) or sre.match('^[0-4]:\d*m$',w[4]) :
continue
# on reccuperre les processus s le tty