diff --git a/gestion/tools/who2b b/gestion/tools/who2b index 5df8027f..e68eb233 100755 --- a/gestion/tools/who2b +++ b/gestion/tools/who2b @@ -5,4 +5,4 @@ if [ `hostname` != "vo" ]; then exit 1 fi -sudo -u respbats /usr/scripts/gestion/tools/who2b.py +sudo -u root /usr/scripts/gestion/tools/who2b.py diff --git a/gestion/tools/who2b.py b/gestion/tools/who2b.py index a99b6218..265b3392 100755 --- a/gestion/tools/who2b.py +++ b/gestion/tools/who2b.py @@ -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