Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Win32 Error Code = 87

by strikr (Initiate)
on May 27, 2003 at 12:35 UTC ( [id://260977]=perlquestion: print w/replies, xml ) Need Help??

strikr has asked for the wisdom of the Perl Monks concerning the following question:

I get this error when I try to exec this script from a .shtml page here is my call
exec cgi="\cgi-bin\maintain\links.pl"

I know this means I have an invalid parameter

The funny thing about this is that server just changed from an NT to a Windows 2000 server is there some thing different that I have to do so I can run a perl script on a 2000 server?

Replies are listed 'Best First'.
Re: Win32 Error Code = 87
by arturo (Vicar) on May 27, 2003 at 13:00 UTC

    Have you done any research on what that error code means? If it's coming from the webserver, check the webserver's documentation.

    Off the top of my head, though, the following strikes me as most likely: if the server's OS has changed, then there are two things that could have gone wrong: either Perl is not installed on the new OS, or your webserver does not "know" that .pl files are to be run through the Perl interpreter. Make sure that .pl is associated with the perl.exe file on the server.

    If not P, what? Q maybe?
    "Sidney Morgenbesser"

Re: Win32 Error Code = 87
by Jenda (Abbot) on May 27, 2003 at 20:59 UTC

    Change the backslashes to forward slashes!

    While microsoft is usualy very forgiving in this the parameter to <!--#exec cgi="..."--> is supposed to be a URL. And URLs contain forward slashes!

    HTH, Jenda
    Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.
       -- Rick Osborne

    Edit by castaway: Closed small tag in signature

      Its always the simplest of mistakes that mess it up, Thanks the forward slashes solved my problem, once again perlmonks rule.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2024-03-28 23:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found