Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #70879

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

From Roy Smith <roy@panix.com>
Newsgroups comp.lang.python
Subject Re: Hi. I want to create a script to read a file placed in a remote linux server using python..need help..?
Date 2014-05-02 18:51 -0400
Organization PANIX Public Access Internet and UNIX, NYC
Message-ID <roy-526263.18512902052014@news.panix.com> (permalink)
References <a6716c27-bd6d-4fc5-8932-55470a78deb2@googlegroups.com> <lk16di$854$1@dont-email.me>

Show all headers | View raw


In article <lk16di$854$1@dont-email.me>,
 Denis McMahon <denismfmcmahon@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 should have long since 
been replaced with ssh.

One of the cool thinks about ssh is that not only does it give you 
remote shell connectivity, but it can be used to execute commands 
remotely, over the same secure channel.  There is an awesome python 
package called fabric (http://www.fabfile.org/) which makes it trivial 
to do this inside of a python program.  You can use it as a command-line 
tool, or as a library embedded in another python script.

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


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