Hey all

This has been killing me for like half a day now.

I'm taking over admin for a web server (IIS on W2k) and all of a sudden one of our scripts stopped working.

The script is called "debug.cgi". IIS is set up to pass all cgi files to C:\Perl\bin\perl.exe, so for some reason .cgi scripts are passed to perl. It's been working great up until now, when all of a sudden it stopped working.

When you try to run the script by submitting a web form, the following pops up:

"Serious Problem: Invalid argument at C:\website\debug.cgi line 324."

Opening up debug.cgi and going to line 324, I see the following:

open ( WEBLOG, "Y:\\access_log" ) or die "Serious Problem: $!";

This is the only instance of the words "Serious Problem" in the entire script.

Now I wrote a test script that does nothing but open up Y:\access_log and print out the contents, and it works great, so there are no problems with permissions or anything like that. That tells me it might have something to do with the way IIS is handling its perl. Does anyone know anything whether there's anything different that IIS does to handle perl? Perhaps a different username? Has anyone come across anything similar?

In reply to Perl on IIS by Tyr_7BE

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.