Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error message code=87

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi, guys!
I'm trying to execute script with .cgi extension and keep getting this error message:
[red]Failed to execute script: Win32 error code = 87.[/red]
Could anyone tell me what are possible reasons that cause this error.
I just started with CGI and this .cgi script is just a try to get well-known output "Hello" on a web page.
I'm running Win2K Advanced Server w/IIS 5.0, I have Perl installed, I added MIME type application/x-httpd-cgi , directory, which my files are in has Script and Execute Permissions. Here are the files, which I cannot execute:

[red]hello1.shtm[/red]
---------------------
<HTML>
<HEAD>
<META NAME=&quot;GENERATOR&quot; Content=&quot;Microsoft Visual Studio 6.0&quot;>
<TITLE></TITLE>

</HEAD>
<BODY>

<P> </P>
<!-- #exec cgi=&quot;scripts/hello1.cgi&quot;-->
</BODY>
</HTML>

[red]Hello1.cgi[/red]
-----------------------
#! d:/perl/bin/perl
print &quot;Hello, anybody!&quot;

If I save hello1.shtm just as .htm file, it doesn't give any output. If I try to execute .cgi file directly - not calling it from another file - I get an &quot;Internal Server Error&quot;.

Maybe I just coded it wrong, if one could call that 'coding'? So, any help on this will be highly appreciated.

Thank you.


 
I am not familiar with the IIS web servers. However, you should be able to try the first several examples in the CGI FAQ (faq452-653) and get them working. Then, after try the above trick again.

HTH

Note: there is a CGI forum that might be better home for this post.


keep the rudder amid ship and beware the odd typo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top