Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Python
supplying password to subprocess.call('rsync ...'), os.system('rsync ...')
 

Index | Next | Previous | View Flat


tjandacw at yahoo

Oct 5, 2007, 7:33 AM


Views: 5459
Permalink
supplying password to subprocess.call('rsync ...'), os.system('rsync ...')

Hi

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. I expected this,
but when I try to give my password, it's echoed back to the terminal
and the special characters in the password is (I think) getting
interpreted by the shell (zsh)

I can't ssh w/o supplying a password. That's the way the security is
set up here.

How do I use python to do this, or do I just have to write a zsh
script?

Thanks.

--
http://mail.python.org/mailman/listinfo/python-list

Subject User Time
supplying password to subprocess.call('rsync ...'), os.system('rsync ...') tjandacw at yahoo Oct 5, 2007, 7:33 AM
    Re: supplying password to subprocess.call('rsync ...'), os.system('rsync ...') tjandacw at yahoo Oct 5, 2007, 8:37 AM
        Re: supplying password to subprocess.call('rsync ...'), os.system('rsync ...') stargaming at gmail Oct 5, 2007, 9:23 AM
            Re: supplying password to subprocess.call('rsync ...'), os.system('rsync ...') nick.bastin at gmail Oct 7, 2007, 5:37 PM
    Re: supplying password to subprocess.call('rsync ...'), os.system('rsync ...') ldo at geek-central Oct 6, 2007, 1:18 AM
    Re: supplying password to subprocess.call('rsync ...'), os.system('rsync ...') wizzardx at gmail Oct 7, 2007, 1:43 AM
    Re: supplying password to subprocess.call('rsync ...'), os.system('rsync ...') wizzardx at gmail Oct 7, 2007, 1:51 AM
    Re: supplying password to subprocess.call('rsync ...'), os.system('rsync ...') torriem at chem Oct 7, 2007, 10:01 AM
    Re: supplying password to subprocess.call('rsync ...'), os.system('rsync ...') tjandacw at yahoo Oct 9, 2007, 8:06 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.