call scp from python
Peter Hansen
peter at engcorp.com
Fri May 7 07:36:28 EDT 2004
Josef Meile wrote:
> Coder Coder wrote:
> > How can scp a file from one computer to another using python?
> You can either use os.system or some of the popen functions of the os
> module.
But only if you can set it up to run in batch mode, without asking
for passwords *or* a passphrase. Otherwise you need a pty to get it to
work. Past threads in the newsgroup have covered this topic as well.
Search Google Groups for "group:comp.lang.python scp popen" for more.
-Peter
More information about the Python-list
mailing list