Since you are running this script under IIS, you only have the permissions that the IIS process has. CGI apps on IIS run using the IUSR_MachineName account, and have very limited rights. I believe that is why you aren't getting the results you expect.

Try changing account used for Anonymous IIS access. Go to Start->Run and type inetmgr and hit enter. This will bring up the management console for IIS. Right click on the web site and select Properties, the go to the Directory Security tab. Change the account used for anonymous access to your user account, then try running your script.

If this is for an intranet, and everyone will have a domain account, you could also enable Integrated Authentication.

As everyone else has stated, this will not launch a browser on a separate client machine, but will work if, as you say, client and server are the same box.

Tested on IIS5/WinXP/ActiveState Perl 5.8/IE8


In reply to Re: Open another IE browser window from CGI by digger
in thread Open another IE browser window from CGI by Olaf

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.