finger/list

28 lines
603 B
Plaintext
Raw Permalink Normal View History

2019-08-11 18:54:10 +00:00
#!/bin/sh
2020-03-15 15:13:11 +00:00
. /etc/efingerd/log
2019-08-11 18:54:10 +00:00
2019-09-10 12:14:36 +00:00
printf "\nwelcome to\n"
figlet -f smslant envs.net
2020-02-16 15:57:49 +00:00
cat <<EOM
envs.net is a minimalist, non-commercial
shared linux system and will always be free to use.
we are linux lovers, programmer and users who like build webpages,
write blogs, chat online, play cool console games and so much more.
you wish to join with an small user space?
https://envs.net/signup/
https://envs.net/
EOM
2019-08-11 18:54:10 +00:00
if [ "$1" = "(null)" ]; then
2020-03-08 10:25:00 +00:00
printf "\n\nhello %s,\n" "$2"
2019-08-11 18:54:10 +00:00
else
2020-03-08 10:25:00 +00:00
printf "\n\nhello %s@%s\n" "$1" "$2"
2019-08-11 18:54:10 +00:00
fi
2020-03-15 15:13:11 +00:00
printf "users currently logged in are:\n\n%s\n" "$(who -uw | sort -u -k 1,1)"