How can I call a program.py on a server within another local program.py?

0

I have interacted with a server within a program that I am doing using the os.system () function as if it were using the console itself.

os.system("ssh [email protected] 'comando a ser realizado'")

For everything I had done before (create folders, move files and things in genre) this function would work, now when I do.

os.system("ssh [email protected] 'python programa.py'")

It looks like it launched the program, but it does not give any feedback, and apparently it's not even running.

    
asked by anonymous 14.05.2018 / 22:20

0 answers