Hi, Robert and welcome to the Monastery.

You may want to read the site's FAQs and one or both of these: On asking for help and How do I post a question effectively?. We strive to provide a learning enviroment... not a codewriting service.

But, for starters on the problem that brought you here, you may wish to read about system, exec, backticks et al. And feeding a fairly obvious selection of keywords to Super Search will provide you with a rather extensive list of nodes on the very topic.

Obligatory correction: "doesn't work" is NOT a useful description of a failure. What happened? What warnings or errors messages did you receive? What's your code look like? (What you post should demonstrate your problem, repeatably; but as minimal as possible while satisfying the first constraint.) And what process -- a shell process, an executable, what?

Give us a chance to provide useful help by providing those elements, and you're virtually guaranteed to get responsive replies, probably quicker than you expect.


In reply to Re: Communicate with child process via stdin, stdout by ww
in thread Communicate with child process via stdin, stdout 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.