System call fails in webserver
am 11.02.2006 17:04:28 von Guenter
Hi,
I have a perl script calling system calls. Example:
system("ls -l")
befor I upgradet to Apache2 and mod_perl2 everything works fine.
>From the bash the script is working.
If I run the script from the Webserver I get this error message:
ls: write error: Bad file descriptor
Any Ideas how to solve this problem.
Thanks
Re: System call fails in webserver
am 11.02.2006 19:02:34 von Jake Peavy
Guenter wrote:
> Hi,
>
> I have a perl script calling system calls. Example:
> system("ls -l")
>
> befor I upgradet to Apache2 and mod_perl2 everything works fine.
>
> >From the bash the script is working.
>
> If I run the script from the Webserver I get this error message:
> ls: write error: Bad file descriptor
>
> Any Ideas how to solve this problem.
>
> Thanks
I have an idea where you should start: read the posting guidelines for
this group.
I guarantee you will find the issue yourself if you follow the
guidelines that are posted here twice a month.
-jp