I know that you can monitor resources (disk, etc.) from Perl. One thing that I've noticed is that none of the resource monitoring modules/scripts/etc. don't have options for monitoring printer queues. Is there some way to hack together a module to monitor print queues and their attributes? I've been looking at the Win32::Perf library, but, again, I didn't see anything that had to do with the printer queues. I (of course) have been unable to come across any information that discusses the WindowsNT printing structure (I only know what I've read in the primers and beginning WinNT books). Personally, I think a blocking routine in Perl (similar to the RPC.pm module from Advanced Perl Programming) would be a perfect utility to monitor printer queues, mainly because it doesn't block for very long. If you need to block longer (possibly to read and possibly identify the data going to print), Perl, again provides a nice setup to allow for variable blocking times. Any tips/hints/leads/etc. would be greatly appreciated.

Necos
secon_kun@hotmail.com

In reply to WinNT Printer monitoring... by Necos

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.