Help for this page

Select Code to Download


  1. or download this
    $data .= $self->cmd('some other command', undef, $output_ref);
    
  2. or download this
    $data .= $self->cmd('command | grep string | last 3', undef, $output_r
    +ef);
    
  3. or download this
    $data .= $self->cmd('runthis', undef, $output_ref);
    
  4. or download this
    sub smart_cmd {
      my($self,$cmd,@args) = @_;
    
    ...
    
      $data = $host->cmd($cmd);
      ($data,$matched_prompt) = $host->cmd($cmd,$prompt);