in reply to Bad File Descriptor

What is the full path to perl?

Apache is saying  C:/Perl/bin/perl isn't a program it can launch

If that is where the file really is try the full name of  C:/Perl/bin/perl.exe

Heck even try C:\Perl\bin\perl.exe for good measure

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

    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.

      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.