How's that script executed? Is it listening to a port (in which case, the socket will provide you with the information)? Is it run from a remote shell? Is it executed by means of UUCP? Perhaps it's a CGI program? Or are you using SOAP? Is the script is mailed, and you're using a fancy .forward file? Is your .finger a named pipe?