Hi. I want to create a script to read a file placed in a remote linux server using python..need help..?

2014-05-02 Thread Bhawani Singh
I have created the script till here .. import os os.chdir(/var/log) fd = open(t1.txt, r) for line in fd: if re.match((.*)(file1)(.*), line): print line, Output : file1 this script i ran on the linux server, but now i want to run this script from another linux

Re: Hi. I want to create a script to read a file placed in a remote linux server using python..need help..?

2014-05-02 Thread Denis McMahon
On Fri, 02 May 2014 12:55:18 -0700, Bhawani Singh wrote: I have created the script till here .. import os os.chdir(/var/log) fd = open(t1.txt, r) for line in fd: if re.match((.*)(file1)(.*), line): print line, Output : file1 this script i ran

Re: Hi. I want to create a script to read a file placed in a remote linux server using python..need help..?

2014-05-02 Thread Roy Smith
In article lk16di$854$1...@dont-email.me, Denis McMahon denismfmcma...@gmail.com wrote: Method b: Use telnet to login to your account on the other server, run the script. Ugh. I hope nobody is using telnet anymore. Passwords send in plain text over the network. Bad. All uses of telnet