From 12e755fa648e92171a4d2fe4c02e63f5e61c80b9 Mon Sep 17 00:00:00 2001 From: Gabriel Detraz Date: Thu, 2 Jul 2015 20:10:57 +0200 Subject: [PATCH] =?UTF-8?q?Adaptation=20=C3=A0=20jessie=20sur=20les=20tty?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gestion/tools/who2b.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gestion/tools/who2b.py b/gestion/tools/who2b.py index a9331109..a0992831 100755 --- a/gestion/tools/who2b.py +++ b/gestion/tools/who2b.py @@ -85,7 +85,7 @@ def liste_2b(warn_mail=[]): # Utilisateurs connectés sur vo sur place if gethostname() == 'vo': cprint('---=== W(ho) sur vo ===---', 'bleu') - ttyfound = system("/usr/bin/w -s | grep tty`fgconsole`") + ttyfound = system("/usr/bin/w -s | grep ?xdm?") print '' # Conclusion @@ -93,7 +93,7 @@ def liste_2b(warn_mail=[]): cprint("---=== Il y a du monde au 2B ! ===---", 'vert') else: cprint("---=== Il semble n'y avoir personne au 2B ... ===---", 'rouge') - + if __name__ == '__main__': if '--warn-tpe' in sys.argv: liste_2b(warn_mail=["terminal"])