A Digital Age Deserves A Digital Leader

Apache, Perl Help - Spawn Child process

Apache, Perl Help - Spawn Child process

Postby _Taz_ » Fri May 27, 2005 2:43 pm

I have been working with a cgi script I found. one page in particular keeps giving me a 500 internal server error.

error log shows: 9)Bad file descriptor: don't know how to spawn child process: D:/apache/Apache2/cgi-bin/www-sched/html/error-invalid.html, referer:

the file exists, and the html code is right, I checked my perl path and it's right
Win2k server running Apache/Perl
cgi script itself is located in D:/apache/Apache2/cgi-bin/www-sched/
and the html file is in D:/apache/Apache2/cgi-bin/www-sched/html

the line in the cgi script that calls this file is
print redirect(-url=>'html/error-invalid.html');
(basically check to see if password is valid if no, opens the password invalid page.)

any thoughts?
PRO Level 13
User avatar
Posts: 848
Joined: Tue Jun 29, 2004 2:01 pm
Location: Florida

Postby _Taz_ » Wed Jun 01, 2005 12:38 pm

ok, i got it working. probably not right, but it works
changed this line
print redirect(-url=>'html/error-invalid.html');
to
print redirect(-url=>$error);
and in the start of the script I define $error to the full path of the html file
(I tried the full path in the statement but that didn't work)
PRO Level 13
User avatar
Posts: 848
Joined: Tue Jun 29, 2004 2:01 pm
Location: Florida

Return to HTML, CSS, and Scripts

Who is online

Users browsing this forum: No registered users and 2 guests

cron
cron