Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: Bad File Descriptor ( apache don't know how to spawn child process )

by Milti (Sexton)
on Sep 30, 2016 at 23:34 UTC ( [id://1173039]=note: print w/replies, xml ) Need Help??


in reply to Re: Bad File Descriptor ( apache don't know how to spawn child process )
in thread Bad File Descriptor

The same Shebang line, #!C:/Perl/bin/perl, works on other cgi programs on this server. The location of the perl .exe file is as noted, C:/Perl/bin/perl, where perl is the executable .exe file. I will try both your suggestions but I don't understand why something might work one time and not the next.

  • Comment on Re^2: Bad File Descriptor ( apache don't know how to spawn child process )

Replies are listed 'Best First'.
Re^3: Bad File Descriptor ( apache don't know how to spawn child process )
by Anonymous Monk on Sep 30, 2016 at 23:45 UTC

    The same Shebang line, #!C:/Perl/bin/perl, works on other cgi programs on this server.

    In that case check file permissions. The error message you quoted does say "cgiprogram.pl is not executable" thats a permissions thing.

      As far as I can tell the file permissions are the same on all the cgi programs, i.e. everyone has the minimum of read & execute. I tried the different addressing suggested earlier and it didn't work. Same error message seemingly suggesting the #! was missing. The program being called in this case is one that retrieves data from a MySQL database. Another program which inserts data into the same database is executed when called and completes its task. That program has the same Shebang line as the one that fails. The programs are located in the same cgi-bin and have the same apparent permissions.

        what happens if you rename the file? and starta newfile.pl, copy paste the contents into that?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1173039]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (7)
As of 2024-04-24 01:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found