Hi All, I am trying to access the contents of a file in a remote machine and store the contents in string.
The command, os.execv(ssh, [ssh, "-l", user, ip] + ['cat /tmp/temp.conf'] works but displays the output on to the screen. I tried, to_be_analysed_txt = os.execv(ssh, [ssh, "-l", user, ip] + ['cat /tmp/temp.conf'] but that does not work out. Regards, KartheeK
_______________________________________________ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers