in reply to get user name
If the person logged on to a .htaccess-wise protected website, and your script is using CGI.pm, remote_user() should also do the trick.
However, this doesn't work if you're wanting to get the username of a person logged on to a network (i.e. not onto a webserver).
--cs
There are nights when the wolves are silent and only the moon howls. - George Carlin
In Section
Seekers of Perl Wisdom