You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Oleg Shaikhatarov <ol...@allory.com> on 2002/07/23 16:30:50 UTC

Change program name of httpd process

Hello, all!

I need to change proctitle (called $PROGRAM_NAME or $0 in perl) of httpd
process from mod_perl. Simple change of $0 variable works well for
standalone perl program, but don't work under mod_perl. I'm not sure if
it's possible, but if anyone have an idea how to do this please help.

Regards,
Oleg Shaikhatarov
olsh@allory.com




Re: Change program name of httpd process

Posted by Stas Bekman <st...@stason.org>.
Oleg Shaikhatarov wrote:
> Hello, all!
> 
> I need to change proctitle (called $PROGRAM_NAME or $0 in perl) of httpd
> process from mod_perl. Simple change of $0 variable works well for
> standalone perl program, but don't work under mod_perl. I'm not sure if
> it's possible, but if anyone have an idea how to do this please help.

please give us some more details. What do you do and what doesn't work. 
e.g. Apache::Registry sets $0 to the location of the currently processed 
script. Why cannot you do the same?



__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com