blob: 52472826b23221bb58f9390fe97a4885e2767182 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/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)
z=$(ps aux | grep notty | cut -d' ' -f1)
echo "Currently logged in users, including MOSH: "
echo "$x" | sort | uniq
echo "$y" | sort | uniq
echo ""
echo "NO TTY:"
echo "$z" | sort | uniq
|