STDERR issue with Apache 2.0.4 under mod_perl
am 15.11.2009 19:02:11 von Shibi NS--00504502cb24308be904786cb136
Content-Type: text/plain; charset=ISO-8859-1
The configuration in httpd.conf look like this
my $app_home = $ENV{APPS_HOME};
my $config =
ConfigLoader::include("$app_home/conf/myapp.pl
my $elog = '"| rotatelogs '. $config->{log_file} . '%y%m%d
1M "';
$ErrorLog = $elog ;
Where the $config->{log_file} is
/nfs/private/user/sns/log/myapps.myserver-44088.log
But when I checked up the fd 1 of my request process(i suppose this is
STDERR) it points to /nfs/private/user/sns/log/
ursforms.myserver-44088.log . Why so in httpd.conf i configured $ErrorLog to
a pipe and never configured STDERR how STDERR automatically picks up
/nfs/private/user/sns/log/myapps.myserver-44088.log for STDERR
--Shibi Ns--
--00504502cb24308be904786cb136
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
The configuration in httpd.conf look like this
<Perl>
=A0 my $app_home =3D $ENV{APPS_HOME};
=A0 my $config =A0 =3D ConfigLoader::inc=
lude("$app_home/conf/
>myapp.pl"); =A0
my $elog =A0 =A0 =A0 =A0 =A0 =A0 =3D '"| rotatelogs '. $=
config->{log_file} . '%y%m%d 1M "';
=A0 $ErrorLog =3D $elog ;
=A0
</Perl>
Where the $config->{log_file}=A0 is /nfs/private/user/sns/log/myapps.my=
server-44088.log
But when I checked up the fd 1 of my request proces=
s(i suppose this is STDERR) it points to /nfs/private/user/sns/log/ =3D":15k" class=3D"ii gt">
ursforms.myserver-44088.log . Why so in httpd.conf i configured $ErrorLog t=
o a pipe and never configured STDERR=A0 how=A0 STDERR automatically picks u=
p /nfs/private/user/sns/log/myapps.myserver-44088.log for STDERR
--Shibi Ns--
--00504502cb24308be904786cb136--