I have myfile.pyon my local machine.
I want to do something like:
from fabric.api import env, run
env.host_string = 'whatever.com'
def run_script():
run('python myfile.py')
but of course this returns can't open file 'myfile.py': [Errno 2] No such file or directoryHow can I run this file remotely? Do i have puton whatever.com?
source
share