Re: [BangPypers] Redirecting output to a string

2008-03-19 Thread KartheeK
 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

Re: [BangPypers] Redirecting output to a string

2008-03-19 Thread Pythonic
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 /

Re: [BangPypers] Redirecting output to a string

2008-03-18 Thread Pavithra Hanchagaiah
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, [

[BangPypers] Redirecting output to a string

2008-03-18 Thread KartheeK
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]