Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #70875
| Newsgroups | comp.lang.python |
|---|---|
| Date | 2014-05-02 12:55 -0700 |
| Message-ID | <a6716c27-bd6d-4fc5-8932-55470a78deb2@googlegroups.com> (permalink) |
| Subject | Hi. I want to create a script to read a file placed in a remote linux server using python..need help..? |
| From | Bhawani Singh <bhawani90@gmail.com> |
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 server and get the output displayed there..how can i do that...
i tried to use : pexpect
but getting no help..
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
Hi. I want to create a script to read a file placed in a remote linux server using python..need help..? Bhawani Singh <bhawani90@gmail.com> - 2014-05-02 12:55 -0700
Re: Hi. I want to create a script to read a file placed in a remote linux server using python..need help..? Denis McMahon <denismfmcmahon@gmail.com> - 2014-05-02 22:32 +0000
Re: Hi. I want to create a script to read a file placed in a remote linux server using python..need help..? Roy Smith <roy@panix.com> - 2014-05-02 18:51 -0400
csiph-web