On 08/27/2010 05:47 AM, S Pratap Singh wrote:
> Hello Peter ,
> 
> Did you try executing command "top -cd2", "iostat 1", vmstat 1 10" etc ? Did
> you get the output of those command ? I am not getting the output of these
> commands rest works fine for me.


  use Net::OpenSSH;
  my $ssh = Net::OpenSSH->new($host, user => $user, passwd => $passwd);

  my $out = $ssh->pipe_out('iostat 1');
  while(<$out>) {
    print $_;
  }

- Salva

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to