[who2b/vo] fgconsole = tty en cours
Par contre, fgconsole ne s'execute qu'en root
This commit is contained in:
parent
8354ec1705
commit
7ab984dc69
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue