#!/bin/bash # Just in case you can't tell... # This isn't standard fingerd. # This just sends a simple message whenever someone connects to my finger # port. exec 2>&1 exec \ envdir ./env \ bash -c '\ exec \ tcpserver -HRv -llocalhost 0 ${PORT} \ setuidgid nobody \ /bin/echo "${MESSAGE}"'