I wrote a CGI program years ago that gathers input from a user, querys a DB, plots the results in gnuplot using a system call and displays the results to the browser.

Life was good, the program worked, I got paid, there was much rejoicing.

Now the proplem... New SA, new web server (IIS6), new configuration.
Now the program don't work, and the old boss is calling me.

I can track the problem down to the system call to gnuplot. I don't have access to the server however, so as far as I can tell gnuplot can't create the .gif file (the gif is created by File::Temp). System returns, and my program displays an empty .gif image. I believe there is no way to get an error message from gnuplot in batch mode. I don't do windows, but it seems that there is a file permision issue. So my questions are simply
  1. What can I tell this *system administator* to help him find the problem
  2. Can I do something to work around his configuration issues
  3. Would there be any use in looking into something like Win32::Process
  4. Is there any way to make windows just go away?
Sorry if this post is somewhat off topic (and ill tempered).

In reply to system() and file permisions by Anonymous Monk

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.