Help for this page

Select Code to Download


  1. or download this
    my $cmd = Expect->spawn("program $params")
        or die "Couldn't run program";
    ...
         print $cmd "passwd\n";
    }
    #Here I would like to gather the output for parsing.
    
  2. or download this
    $cmd->expect($timeot);
    $output = $cmd->before();