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: $!";
In reply to Input and output piping? by cyberconte
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |