How to automate the sending of files over the network using python?
问题 Here's what I need to do: I need to copy files over the network. The files to be copied is in the one machine and I need to send it to the remote machines. It should be automated and it should be made using python. I am quite familiar with os.popen and subprocess.Popen of python. I could use this to copy the files, BUT, the problem is once I have run the one-liner command (like the one shown below) scp xxx@localhost:file1.txt yyy@]192.168.104.XXX:file2.txt it will definitely ask for something