Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
1. use IPC::Open2
2. start the app with open2(), thereby grabbing its STDIN/STDOUT
3. communicating with the app through the handles I got from open2
Well, I was overly optimistic. It seems it can not be accomplished that way. My perl script just hangs on, waiting...
The applications is using 0x0D as input (and output) record separator. So I have changed $/ to that.
I have also asked for autoflush:
select $writer;
$|++;
But no.
For what it is worth: When I try connecting through a ssh connection I can communicate with the application. I am on Solaris 10, if that matters.
Am I missing something obvious?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Networking without a network
by zentara (Cardinal) on Feb 23, 2010 at 11:49 UTC | |
by Anonymous Monk on Feb 23, 2010 at 13:02 UTC | |
by zentara (Cardinal) on Feb 23, 2010 at 16:44 UTC | |
by JavaFan (Canon) on Feb 23, 2010 at 14:27 UTC | |
by zentara (Cardinal) on Feb 23, 2010 at 16:53 UTC | |
|
Re: Networking without a network
by salva (Canon) on Feb 23, 2010 at 12:42 UTC | |
by Anonymous Monk on Feb 23, 2010 at 13:09 UTC | |
by salva (Canon) on Feb 23, 2010 at 14:06 UTC |