From fa1627199f693e699253f8164038f85cbec1fb19 Mon Sep 17 00:00:00 2001 From: cohen Date: Sun, 11 Nov 2007 13:23:18 +0100 Subject: [PATCH] legere modif de l'autologout darcs-hash:20071111122318-f6463-bcd2493aa12c5d10b08e987cd921ea322cac749b.gz --- autologout.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/autologout.py b/autologout.py index 621ef644..1fdab6f5 100755 --- a/autologout.py +++ b/autologout.py @@ -9,14 +9,17 @@ for w in commands.getoutput("w -h").split('\n') : if not w : continue # 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