http://qs321.pair.com?node_id=67226


in reply to Script running online?

PotPieMan's solution is close to what I came up with. I tried:

print getpwuid($<);
Run from the command line it printed:

sutch

which is my username. Run within a CGI script it printed:

apache

which is the user that HTTPD runs under on my machine.