diff options
author | Benjamin Morrison <ben@gbmor.org> | 2023-06-12 22:40:57 -0400 |
---|---|---|
committer | Benjamin Morrison <ben@gbmor.org> | 2023-06-12 22:48:29 -0400 |
commit | 127e786b70911bed54c1189e394e6744907395c1 (patch) | |
tree | 6c9c3538214765c07a564bcba9e09b7f16d99d59 /bin/showwhoison | |
parent | 36edcab02c713b46a52db3a0dd0271459d57b9e8 (diff) | |
download | admin-127e786b70911bed54c1189e394e6744907395c1.tar.gz |
Diffstat (limited to 'bin/showwhoison')
-rwxr-xr-x | bin/showwhoison | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/bin/showwhoison b/bin/showwhoison index 6c36584..5247282 100755 --- a/bin/showwhoison +++ b/bin/showwhoison @@ -4,8 +4,13 @@ # Shows connected users, including those # connected via mosh -x=$(who | cut -d' ' -f1 ) +x=$(who | cut -d' ' -f1) y=$(ps aux | grep mosh | cut -d' ' -f1) +z=$(ps aux | grep notty | cut -d' ' -f1) echo "Currently logged in users, including MOSH: " -echo "$x" |sort | uniq +echo "$x" | sort | uniq echo "$y" | sort | uniq + +echo "" +echo "NO TTY:" +echo "$z" | sort | uniq |