Not able to write using Open2
- From: "Ashwin" <Ashwin@DoNot@Email.com>
- Date: Tue, 29 Nov 2005 14:36:13 GMT
Here is my complete code , I am trying to call a file, and then I need
to pass cirtain inputes which script asks,
I am opening with open2 and then trying to write with WRITE, I am able
to read but cannot write I mean I cannot send the input to WRITE handle
what could be wrong
TIA
use warnings;
use strict;
use IPC::Open2;
use Cwd;
my $currentdir=cwd();
my $pid;
chdir ("/source/internal/") or die "Cannot Change Directory";
$pid = open2 (\*READ,\*MY_WRITE,"BuildInternal.pl") or die;
while (<READ>)
{
print $_;
}
print MY_WRITE\n";
while (<READ>)
{
print $_;
}
close MY_WRITE;
close READ;
--
.
- Follow-Ups:
- Re: Not able to write using Open2
- From: Paul Lalli
- Re: Not able to write using Open2
- Prev by Date: Re: Not able to write using Open2
- Next by Date: Re: Not able to write using Open2
- Previous by thread: length is 0 with unpack_socketaddr_in
- Next by thread: Re: Not able to write using Open2
- Index(es):
Relevant Pages
|