sdetweil has asked for the wisdom of the Perl Monks concerning the following question:
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.
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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: detecting running environment, windows
by BrowserUk (Patriarch) on Feb 10, 2013 at 12:45 UTC | |
by sdetweil (Sexton) on Feb 10, 2013 at 13:34 UTC | |
Re: detecting running environment, windows
by Anonymous Monk on Feb 09, 2013 at 21:32 UTC | |
by sdetweil (Sexton) on Feb 10, 2013 at 00:36 UTC |
Back to
Seekers of Perl Wisdom