legere modif de l'autologout
darcs-hash:20071111122318-f6463-bcd2493aa12c5d10b08e987cd921ea322cac749b.gz
This commit is contained in:
parent
6fd639385f
commit
fa1627199f
1 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue