Thanks for the valuable assistance. I'm not a Win32 guy by trade, so I'm still trying to absorb much of this info. Someone else I work with reminded me of the issue of threads vs. processes, and I am aware of the difference. As you say, it's semantics, but very important to avoid confusion, so please accept my apologies.

I have applied your suggestions, and now my code is generating a log file for each "child" process. That addresses our primary need. I'm still looking at other options, as a separate log file for each process isn't where we really want to be, but at least we can move forward from here. In the long term I hope to come up with a solution that allows us to launch a large number of essentially simultaneous processes and have the command line output all logged to the same file, but if that isn't doable we will have to live with what we have right now.

Again, thanks for your help.


In reply to Re^2: Redirecting Output From Command Line in Threads by CKCJim
in thread Redirecting Output From Command Line in Threads by CKCJim

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.