use Net::SSH::Perl; $pac = burn.i386_26.rpm $host = "10.x.x.x"; $user = "xxxxx"; $passwd = "xxxxx"; $cmd = <new($host); $ssh->login($user,$passwd); ($output, $error, $exit) = $ssh->cmd($cmd); $cmd = <new($host); $ssh->login($user,$passwd); ($output, $error, $exit) = $ssh->cmd($cmd);