And once again a Win question :)
I have a perl script invoked by RedMon -Redirection Port Monitor.
I read from STDIN and want to know which size the data from STDIN is. I've tried the following:
@status = stat(STDIN); $size=$stat[7]
Ok when I look into my WinNT printer-status window, I get the Information: Size: 4,00KB/80,7 KB. This shows me, that 4 K are allready sent to my script from totalling 80,7 KB data.

My perl stat(STDIN) gives me only the 4K, not the 80,7 K which I wanted to get, cause the rest of the data is somewhere in the spooler.
Is there a possibility to get access to this printer-spool Information from NT? Or must I save STDIN to a file first, than get the size info and after that process the script with the temporary created file?

Thanks for any help.

----------------------------------- --the good, the bad and the physi-- -----------------------------------

In reply to how to get spool info from NT by physi

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.