geektron has asked for the wisdom of the Perl Monks concerning the following question:
my $writer = IO::Handle->new(); my $reader = IO::Handle->new(); eval { my $cpid = open3( $writer, $reader, $reader, "rsh $name show hard +serial" ); }; print $to_parent "ERROR::$name--refused RCP command\n" if ( $@ =~ /ope +n3/ ); my $return_val = <$reader> ; chomp $return_val; #for debugging print STDOUT "RETURNED: $return_val\n"; print $to_parent "RESULTS::RCP:$name--RCP Successful\n" if ( $return_v +al );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE (tilly) 1: Open3 in child process not capturing errors correctly. .
by tilly (Archbishop) on Oct 26, 2000 at 05:19 UTC | |
by geektron (Curate) on Oct 26, 2000 at 10:07 UTC | |
|
Re: Open3 in child process not capturing errors correctly. .
by Fastolfe (Vicar) on Oct 26, 2000 at 00:45 UTC | |
by geektron (Curate) on Oct 26, 2000 at 00:52 UTC | |
|
Re: Open3 in child process not capturing errors correctly. .
by mdillon (Priest) on Oct 26, 2000 at 00:45 UTC | |
by geektron (Curate) on Oct 26, 2000 at 00:58 UTC | |
|
Re: Open3 in child process not capturing errors correctly. .
by Anonymous Monk on Oct 26, 2000 at 05:48 UTC | |
|
RE: Open3 in child process not capturing errors correctly. .
by geektron (Curate) on Oct 27, 2000 at 01:44 UTC |