RE: Find User Apache is running as

2004-03-29 Thread Bob Showalter
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 sc

Re: Find User Apache is running as

2004-03-29 Thread JupiterHost.Net
WC -Sx- Jones wrote: JupiterHost.Net wrote: problem is foo.pl can be run simultaneously by 2 different users so I'm not sure how I'd be able to make foo.pl tell which ps it belongs to. Not a problem - each will have it's own address space and PID. The issue - and you haven't shown any code -

Re: Find User Apache is running as

2004-03-29 Thread JupiterHost.Net
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 fr

Re: Find User Apache is running as

2004-03-28 Thread WC -Sx- Jones
JupiterHost.Net wrote: problem is foo.pl can be run simultaneously by 2 different users so I'm not sure how I'd be able to make foo.pl tell which ps it belongs to. Not a problem - each will have it's own address space and PID. The issue - and you haven't shown any code - is mutual data access. Th

Re: Find User Apache is running as

2004-03-28 Thread WC -Sx- Jones
u235sentinel wrote: I'm wondering if there is a perl module to read from the apache server status screen. Doesn't it tell you the server version running? Also, when you connect to a web server, doesn't it pass along this information also? See #!/usr/local/bin/perl -w use strict; use Text::Wrap

Re: Find User Apache is running as

2004-03-28 Thread u235sentinel
I'm wondering if there is a perl module to read from the apache server status screen. Doesn't it tell you the server version running? Also, when you connect to a web server, doesn't it pass along this information also? Been awhile since I've worked with web servers (I'm still a perl noob btw)

Re: Find User Apache is running as

2004-03-28 Thread JupiterHost.Net
Thank you Gaffney and Jones for your input. I may have to parse external program output I suppose. I was hoping there would be a more built in or Modular way to get it. Part of the problem is foo.pl can be run simultaneously by 2 different users so I'm not sure how I'd be able to make foo.pl te

Re: Find User Apache is running as

2004-03-28 Thread WC -Sx- Jones
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) ps -ef |grep -i httpd And, where ever your apache server logs are; do - grep -i suexec error*log

Re: Find User Apache is running as

2004-03-28 Thread Andrew Gaffney
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. Any ideas? If you're running Linux (might work on ot

Find User Apache is running as

2004-03-28 Thread JupiterHost.Net
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. Any ideas? TIA Lee.M - JupiterHost.Net -- To unsubscribe, e-mail: [EMAIL