add online-users.sh

This commit is contained in:
Ben Harris 2021-06-24 10:55:45 -04:00
parent d5054188ac
commit f33abe3bc1
2 changed files with 8 additions and 0 deletions

7
cgi-bin/online-users.sh Executable file
View File

@ -0,0 +1,7 @@
#!/bin/sh
printf "Content-type: text/plain; Charset: UTF-8\n"
printf "\n"
last -Rwpnow | grep -v 'wtmp begins' | grep -v tmux | cut -d' ' -f1 | sort -u | grep .

1
cgi-bin/online-users.sh.txt Symbolic link
View File

@ -0,0 +1 @@
online-users.sh