#!/bin/sh # howdyd.sh # a howdy daemon # wcm, 2004.01.05 - 2004.01.06 # === echo "*** A visitor from ${TCPREMOTEIP}!" >&2 echo "Hi there! Welcome to `hostname`!" echo "The time here: `date`" echo "Our uptime is: `uptime`" echo echo "The howdyd environment:" printenv | sort echo echo "The howdyd user:" who -Hm echo echo "Our users:" w -h echo /usr/games/fortune echo "Bye!" echo "*** The visitor from ${TCPREMOTEIP} departs!" >&2 exit 0 ### that's all, folks!