From 38f3b69c07ea9a9a73840693950c2a05271cc95e Mon Sep 17 00:00:00 2001 From: ahriman Date: Tue, 26 Mar 2019 22:46:26 +0000 Subject: added two scripts to bin/ --- bin/showwhoison | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 bin/showwhoison (limited to 'bin/showwhoison') diff --git a/bin/showwhoison b/bin/showwhoison new file mode 100755 index 0000000..6c36584 --- /dev/null +++ b/bin/showwhoison @@ -0,0 +1,11 @@ +#!/usr/local/bin/bash + +# kneezle@tilde.institute +# Shows connected users, including those +# connected via mosh + +x=$(who | cut -d' ' -f1 ) +y=$(ps aux | grep mosh | cut -d' ' -f1) +echo "Currently logged in users, including MOSH: " +echo "$x" |sort | uniq +echo "$y" | sort | uniq -- cgit 1.4.1-2-gfad0