I have a gui shell for my application, using wxPerl. the actual pgm is a command shell script. I use IPC::Run3 to launch the shell and capture/pass data to the background task. all works cool, except in one case.
IPC::Run3 uses system() to invoke the child.
when the GUI application is linked as a textmode app, and the child is launched, input to the child thru the $stdin handle works as expected.
when the GUI application is linked as a GUI app, and the child is launched, a textmode window appears on top of the gui, and the $stdin data from Run3 is NOT sent to the child. (but stdout/stderr are captured).
I'd also like to resolve that textmode window that was opened, but I don't see any options to system() that might provide this kind of control..
if I don't link the UI as a gui application, then when launched from the gui windows explorer, the textmode box appears when the gui is started instead.. (just can win here)..
are there any controls available in Perl to handle these two cases?
all works great on linux.
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.