Hi there,
I hope this is a trivial newbie problem:
I know how to open a pipe to another program:
open (OUT, "|perl .\\bogus.pl") or warn "Unable to open pipe to
bogus.pl\n";
print OUT "Stuff\n";
And I know how to open a pipe from another program:
open (IN, "perl .\\bogus.pl|") or warn "Unable to open pipe from
bogus.pl\n";
$input = <IN>;
But when I try to do both...
open (OUT, "|perl .\\bogus.pl") or warn "Unable to open pipe to
bogus.pl\n";
open (IN, "perl .\\bogus.pl|") or warn "Unable to open pipe from
bogus.pl\n";
or
open (BOGUS, "|perl .\\bogus.pl|") or warn "Unable to open pipe for
bogus.pl\n";
....strange things happen.
Is there a simple (or even complex) way to open a two way pipe to another
program with Perl. (I don't want to use Expect or any other scripting
language if I can help it).
I'm trying to implement batch code for automating processes over night.
Some of these require a dialog.
TIA
Peter
****** CONFIDENTIALITY NOTICE ******
THIS E-MAIL, INCLUDING ANY ATTACHED FILES, MAY CONTAIN CONFIDENTIAL AND
PRIVILEGED INFORMATION FOR THE SOLE USE OF THE INTENDED RECIPIENT(S).
ANY REVIEW, USE, DISTRIBUTION, OR DISCLOSURE BY OTHERS IS STRICTLY
PROHIBITED. IF YOU ARE NOT THE INTENDED RECIPIENT (OR AUTHORIZED TO
RECEIVE INFORMATION FOR THE RECIPIENT), PLEASE CONTACT THE SENDER BY
REPLY E-MAIL AND REMOVE ALL COPIES OF THIS MESSAGE. THANK YOU.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]