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