From e201733d52497695c7dbc2f67e98138e32ccfb70 Mon Sep 17 00:00:00 2001 From: Daniel STAN Date: Sat, 29 Sep 2012 02:21:57 +0200 Subject: [PATCH] [who2b] session graphique != :0 Ignore-this: c9856f6cb64153391a5c682ddca1064a darcs-hash:20120929002157-28565-34f215fc40b77d101fdf1052f7f52cb56d8f0fe0.gz --- gestion/tools/who2b.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gestion/tools/who2b.py b/gestion/tools/who2b.py index 8c94f969..b49bb9d6 100644 --- a/gestion/tools/who2b.py +++ b/gestion/tools/who2b.py @@ -65,7 +65,7 @@ def liste_2b(): # Utilisateurs connectés sur vo sur place if gethostname() == 'vo': cprint('---=== W(ho) sur vo ===---', 'bleu') - ttyfound = system("/usr/bin/w -s | /bin/egrep 'tty0| :0 | \(:0'") + ttyfound = system("/usr/bin/w -s | /bin/egrep 'tty0| :[0-9]+ | \(:[0-9]+'") print '' # Conclusion