in reply to Re^3: feeding stdin of executed command and store stdout in $var
in thread feeding stdin of executed command and store stdout in $var
do not work :( only print after the finish $h;my @cmd=('lftp', '-u', "$user,$pass", '-e', "open", "$host"); my $h = start \@cmd, \$in, \$out, \$err, timeout( 10 ); $in .= "ls\n"; $in .= "ls\n"; pump $h; print $out; finish $h;
|
|---|