Re: supplying password to subprocess.call('rsync ...'), os.system('rsync ...')
- From: Lawrence D'Oliveiro <ldo@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sat, 06 Oct 2007 21:18:28 +1300
In message <1191594819.381604.20680@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
timw.google wrote:
I want to write a python script that runs rsync on a given directory
and host. I build the command line string, but when I try to run
subprocess.call(cmd), or p=subprocess.Popen(cmd, shell=True),or
os.system(cmd), I get prompted for my login password.
Why not set up a public/private SSH key pair between the accounts on the two
machines? Then you can get in without a password.
.
- References:
- Prev by Date: Re: tkinter question
- Next by Date: Yet another comparison of Python Web Frameworks
- Previous by thread: Re: supplying password to subprocess.call('rsync ...'), os.system('rsync ...')
- Next by thread: Re: supplying password to subprocess.call('rsync ...'), os.system('rsync ...')
- Index(es):
Relevant Pages
|