Â
Thanks,
Pavithra
Â
Â
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of KartheeK
Sent: Wednesday, March 19, 2008 8:52 AM
To: bangpypers@python.org
Subject: [BangPypers] Redirecting output to a string
Â
Hi All,
I am trying to access t
19, 2008 8:52 AM
To: bangpypers@python.org
Subject: [BangPypers] Redirecting output to a string
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 /
o:[EMAIL PROTECTED] On Behalf Of KartheeK
Sent: Wednesday, March 19, 2008 8:52 AM
To: bangpypers@python.org
Subject: [BangPypers] Redirecting output to a string
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, [
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]