Sunday, August 2, 2015

Run Python script on remote server

Instead of copying over the Python script to the remote server to run, the local script can be run on remote server as follow as long as you are a valid user:

    cat script.py | ssh user@machine python -

No comments: