From 127e786b70911bed54c1189e394e6744907395c1 Mon Sep 17 00:00:00 2001 From: Benjamin Morrison Date: Mon, 12 Jun 2023 22:40:57 -0400 Subject: wrapper script for adding users in bulk. cleanup and reconcile local changes. --- bin/showwhoison | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'bin/showwhoison') 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 -- cgit 1.4.1-2-gfad0