cyberconte has asked for the wisdom of the Perl Monks concerning the following question:
What i want to do is to read hte output from ldapadd after piping in my stuff - however adding a pipe to the end of it doesn't seem to have any effect (i.e. it doesn't become read/write, its still write-only, and all output is dumped to the terminal). Is there an easy way to do the equivilant of this:my $prog = new IO::File "| $ldapadd -x 2>&1" or die "Unable to open $ldapadd: $!";
my $prog = new IO::File "| $ldapadd -x 2>&1 |" or die "Unable to open $ldapadd: $!";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Input and output piping?
by ctilmes (Vicar) on Apr 22, 2003 at 20:27 UTC | |
|
Re: Input and output piping?
by jasonk (Parson) on Apr 22, 2003 at 20:40 UTC | |
|
Re: Input and output piping?
by vek (Prior) on Apr 22, 2003 at 23:13 UTC |