my ($out,$err,$exit) = $ssh->cmd("nmon > test.txt");