run python script with arguments on a remote linux host -
i have python script i'm trying run on remote host. however, script requires 2 arguments. example, python script.py --port 4000 --service status
now when run script locally on machine works fine. how can run same script on remote linux machine. i've tried ssh user@remotehost python script.py --port 4000 --service status doesn't work. arguments not passed in.
thank you
you should use following -
ssh user@remotehost "python script.py --port 4000 --service status"
please notice "
double quotes, has double quotes.
Comments
Post a Comment