# Runs the command $cmd on the remote server and returns # the stdout, stderr, and exit status of that command. # If $stdin is provided, it's supplied to the remote # command $cmd on standard input. my ($out, $err, $exit) = $ssh->cmd($cmd, $stdin )