Re: Not able to write using Open2
- From: "Ashwin" <Ashwin@DoNot@Email.com>
- Date: Tue, 29 Nov 2005 14:57:09 GMT
Paul Lalli wrote:
> Ashwin wrote:
> > Here is my complete code ,
>
> Your "complete code" doesn't compile. Try again. Copy and paste,
> don't retype.
>
> Also, from your description, are you sure you shouldn't be using the
> Expect module from CPAN?
>
> Paul Lalli
SOrry, I missee one quatation
here is compiled code,
is there no way I can get it done with open2?
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
- References:
- Not able to write using Open2
- From: Ashwin
- Re: Not able to write using Open2
- From: Paul Lalli
- Not able to write using Open2
- Prev by Date: Not able to write using Open2
- Next by Date: Addition of same value
- Previous by thread: Re: Not able to write using Open2
- Next by thread: Re: Not able to write using Open2
- Index(es):
Relevant Pages
|