Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^4: feeding stdin of executed command and store stdout in $var

by gabrielsousa (Sexton)
on Jan 25, 2017 at 16:44 UTC ( #1180307=note: print w/replies, xml ) Need Help??


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

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;
do not work :( only print after the finish $h;

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1180307]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (1)
As of 2021-09-28 17:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?