abhinav has asked for the wisdom of the Perl Monks concerning the following question:
The script is going to the third line where it is printing "Just for debugging :third line".But it is not asking for the User name and reason.So the tool is not getting executed using this script.Please suggest me how do I proceed.use IPC::Open2; my $pidSsh = open2($RDR,$WTR,"perl /mnt/1/service/ICtool/IC4.pl --full +"); print "Just for debugging :third line\n"; my $line1 = <$RDR>; print $line1; print $WTR "Abhinav \n" if ($line1 eq "User name :"); my $line2 = <$RDR>; print $line2; print $WTR "Testing \n" if ($line2 eq "Reason for running IC tool:");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Cannot read from STDIN and write to STDOUT using IPC and pipes
by moritz (Cardinal) on Oct 11, 2007 at 08:12 UTC | |
by abhinav (Novice) on Oct 11, 2007 at 10:17 UTC | |
by moritz (Cardinal) on Oct 11, 2007 at 10:46 UTC | |
|
Re: Cannot read from STDIN and write to STDOUT using IPC and pipes
by Somni (Friar) on Oct 11, 2007 at 08:16 UTC |