Bob Showalter wrote:
JupiterHost.Net wrote:
Hello List!
I was trying to figure out how to see the user the script/webserver is running as. (Like Apache is 'nobody' or the owner 'foomonkey' perhaps with SuExec enabled)
I looked in %ENV and didn't see it in there.
Are you trying to find out from a CGI script being run by the web server in question? If so, it's a matter of:
print scalar(getpwuid($>));
Perfect Mr Showalter! Exactly the same results as parsing ps but without the External Program worries!!
Thanks a million!
I think you helped me with another issue I had in a former incarnation with my previous emplyer. You rock!
Lee.M - JupiterHost.Net
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>