Click here to get back home

System call fails in webserver

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
System call fails in webserver Guenter 02-11-2006
Posted by Guenter on February 11, 2006, 11:04 am
Please log in for more thread options


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


Posted by DJ Stunks on February 11, 2006, 1:02 pm
Please log in for more thread options


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


Similar ThreadsPosted
download file from windows webserver box using LWP November 3, 2005, 4:31 am
GD demo cgi script works on command line but not on webserver. June 14, 2006, 5:07 am
Win32::Ole and Call by reference October 22, 2004, 10:06 am
How to call PL/SQL procs using Oraperl ? December 8, 2004, 5:22 pm
How can I call MFC functions from Perl July 19, 2005, 9:46 pm
Parsing XML data as it arrives from LWP call January 11, 2005, 1:57 am
Can't call method on an undefined value at June 27, 2005, 2:56 pm
Stored Procedure call using MSSQL::DBLIB April 6, 2006, 5:06 pm
Crypt::CBC Can't call method "blocksize" on unblessed reference July 12, 2004, 10:01 am
system return value? January 26, 2007, 5:52 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap