llancet has asked for the wisdom of the Perl Monks concerning the following question:
However, it always tell me:#!perl ## ## printenv -- demo CGI program which just prints its environment ## print "Content-type: text/plain\n\n"; foreach $var (sort(keys(%ENV))) { $val = $ENV{$var}; $val =~ s|\n|\\n|g; $val =~ s|"|\\"|g; print "${var}=\"${val}\"\n"; }
but "perl" is in path, and can be called directly.couldn't create child process: 720003: printenv.pl couldn't spawn child process: C:/Program Files/Apache Software Foundat +ion/Apache2.2/cgi-bin/printenv.pl
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Fail to spawn perl in apache
by aquarium (Curate) on Jan 29, 2010 at 03:23 UTC | |
by llancet (Friar) on Jan 29, 2010 at 05:03 UTC | |
by Anonymous Monk on Jan 29, 2010 at 05:11 UTC | |
by Khen1950fx (Canon) on Jan 29, 2010 at 05:46 UTC | |
|
Re: Fail to spawn perl in apache
by Anonymous Monk on Jan 29, 2010 at 02:35 UTC |