my($out,$err) = $ssh->cmd($cmd); print "the output is $out\n"