Help for this page

Select Code to Download


  1. or download this
    use IPC::Run qw(start pump finish);
    
    ...
    pump $handle until $out =~ /Password:/;
    
    # and so on ...
    
  2. or download this
    $client_descr->{"Handle"} = $handle;
    $client_descr->{"In"} = $in;
    $client_descr->{"Out"} = $out;
    $client_descr->{"Err"} = $err;
    
  3. or download this
    my ($handle, $in, $out) = ($client_descr->{"Handle"}, $client_descr->{
    +"In"}, $client_descr->{"Out"});
    
  4. or download this
    $in .= "new data\n";
    pump $handle until $out =~ /data arrived:/;
    print $out;