Is this (un-named) program started using a scheduler?

If so, the most straight-forward approach is apt to be intervening there, by modifing the scheduled task. Alternately (and perlishly), you might replace the MS schedule entry running the program, with an entry running a script.

In the latter case, you may be able to use a backtick or 'exec,' (and read carefully the third paragraph of the output of perldoc -f system for why 'system' is NOT appropriate) to execute the program with output to a .pdf printer (be that Adobe's Distiller or other .pdf printer_driver for which, on W32, you may wish to search using ppm (C:> ppm s pdf).

You could also redirect input from the program to such a script and then use one of the many .pdf modules. The same script could print the data, either from the input or from the completed .pdf, as you see fit.

More generally (as if the preceding weren't generalization enough), search and supersearch are helpful if you feed them appropriate keywords.


In reply to Re: Printing Dilemma by ww
in thread Printing Dilemma 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.