tricky stdout

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I use the to feed with data the
is there any way to catch back the output of ?

open  SHELL, '|-',  './' or die "Could not run shell $?\n";
print SHELL "$_\n" foreach 'a1', 'a2', 'a3';
close SHELL;

while (<STDIN>) {
chomp $_;
print STDOUT "s2 $$ received \"$_\"\n" }

Re: tricky stdout

Quoted text here. Click to load it

perldoc -q pipe
"How can I open a pipe both to and from a command?"


Re: tricky stdout

Στις 23/12/2013 17:47, ο/η Jürgen Exner έγραψε:
Quoted text here. Click to load it

use IPC::Open2  is doing the trick , thanks

Site Timeline