Hello People, I am having troubles with a perl functionality build in our content management system. There is a script used to export data. Before you can do so, the script has to look for a set of directories within a certain directory on a remote share. this work fine called from both command line and through CGI. The server where the script runs correct is a old windows 2000 machine. It doesn't matter of you use Apache 1.3 or IIS5 to call it through CGI, both work fine. I am assembling a new server and want to use this script again. This is a windows 2003 server box, with IIS6 and Apache 2.0 installed. The script is still able to retrieve the collection of directories from the remote folder, but only if you run the script from command line. When I call the script through CGI I get the message "No such file or directory" returned in $!. I am sure this has something to do with security, but I am not sure where to start. I want to know what user account Perl is using when it is getting called from CGI, but $< $> $( and $) all return 0. I assume these variable only are filled on unix based machines. Can anybody push me into the right direction? Thx in advance!

In reply to Find perls user account on windows by Passenger

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.