[who2b/vo] fgconsole = tty en cours

Par contre, fgconsole ne s'execute qu'en root
This commit is contained in:
Daniel STAN 2013-03-17 13:42:35 +01:00
parent 8354ec1705
commit 7ab984dc69
2 changed files with 2 additions and 2 deletions

View file

@ -70,7 +70,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-9]+ | \(:[0-9]+'")
ttyfound = system("/usr/bin/w -s | grep tty`fgconsole`")
print ''
# Conclusion