+ log - mails
darcs-hash:20070202090923-f46e9-00449b954167ced565ab3ceac295634e3f5fd62b.gz
This commit is contained in:
parent
1d846030a2
commit
9a7f377102
1 changed files with 4 additions and 1 deletions
|
@ -1,6 +1,8 @@
|
|||
#! /usr/bin/env python
|
||||
|
||||
import sre, commands
|
||||
import crans.utils.logs
|
||||
log = crans.utils.logs.getFileLogger('autologout')
|
||||
|
||||
# pour chaque ligne du w
|
||||
for w in commands.getoutput("w -h").split('\n') :
|
||||
|
@ -30,4 +32,5 @@ for w in commands.getoutput("w -h").split('\n') :
|
|||
|
||||
# on tue le process
|
||||
commands.getoutput('kill %s' % ps[1] )
|
||||
print ps
|
||||
log.info("%s a ete deconnecte" % ps[0])
|
||||
#print ps
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue