I want to SSH to a server and execute a simple command like \"id\" and get the output of it and store it to a file on my primary server. I do not have privileges to install
or, assuming host keys are present and you want to do something with the command ouput ...
open(SSH,"/usr/bin/ssh you\@server ps aux |") or die "$!\n"; while () { # do stuff with $_ } close SSH;