Phác Chí Huấn
New member
How do you write a remote file in Python?
Answer
You open a new SSH process to Machine2 using subprocess. Popen and then you write your data to its STDIN. I’ve just verified that it works as advertised and copies all of the 10485760 dummy bytes. If just calling a subprocess is all you want, maybe sh.py could be the right thing.
Answer
You open a new SSH process to Machine2 using subprocess. Popen and then you write your data to its STDIN. I’ve just verified that it works as advertised and copies all of the 10485760 dummy bytes. If just calling a subprocess is all you want, maybe sh.py could be the right thing.