From 165868747c945aefad250a4173a4572131addbb3 Mon Sep 17 00:00:00 2001 From: ahriman Date: Tue, 26 Mar 2019 22:38:58 +0000 Subject: connusers.py now shows users connected via mosh --- bin/connusers.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/connusers.py b/bin/connusers.py index eee4e7e..1128c34 100755 --- a/bin/connusers.py +++ b/bin/connusers.py @@ -13,10 +13,11 @@ def checkconns(): print("Can't access connected user table. Who are you?") exit(0) - connusers = list(set(subprocess.check_output("/usr/bin/who -q; exit 0", stderr=subprocess.STDOUT,shell=True).decode().splitlines()[0].split())) + connusers = list(set(subprocess.check_output("/usr/local/bin/showwhoison | sed -n '1!p'; exit 0", stderr=subprocess.STDOUT,shell=True).decode().split("\n"))) conntable.write("\n") -- cgit 1.4.1-2-gfad0