有三台机器 A B C,其中A是windows,B、C是linux,现需要在A机上使用Python将B机上的某个文件拷贝到C机上,现在只知道可以使用exec_command()、expect、scp也不弄出来,请大神赐教
光阴似箭催人老,日月如移越少年。
It is more appropriate to use fabric (http://www.fabfile.org/) for this type of task.
You can start a server by typing python -m SimpleHTTPServer in the terminal and then copy the files
python -m SimpleHTTPServer
It is more appropriate to use fabric (http://www.fabfile.org/) for this type of task.
You can start a server by typing
python -m SimpleHTTPServer
in the terminal and then copy the files