Hi All ,
I am looking for a solution to automate downloading file using sftp
process using :
batch.txt :contains the following two lines
cd 12345678
get 12345678_1.zip
import subprocess
host="abc.com"
user="sa"
user_host="%s@%s" % (user, host)
sftp_process = subprocess.Popen(['sftp', '-b', 'batch.txt', user_host],
shell=False)
however it gives error even unable to provide password .
Please advise.
Thank you,
--
Asad Hasan
+91 9582111698
_______________________________________________
Tutor maillist - [email protected]
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor