password input in rsync
Ben Park
benpark at my-deja.com
Tue Jan 23 12:19:48 EST 2001
Hi,
I am trying to automate the process of getting files using rsync. Here
is what I do:
myPass = '1234'
temp1 = "rsync -avz -e 'ssh -l benpark' guppy:temp1 ."
out1,in1,err1 = popen2.popen3(temp1)
in1.write(myPass)
But it does not work. rsync does not take password input from the
standard in.
Any suggestion? Thanks in advance.
Sent via Deja.com
http://www.deja.com/
More information about the Python-list
mailing list