Skip to content

Instantly share code, notes, and snippets.

@Nagasaki45
Created October 31, 2015 19:57
Show Gist options
  • Select an option

  • Save Nagasaki45/40f171fdc307ff3903c0 to your computer and use it in GitHub Desktop.

Select an option

Save Nagasaki45/40f171fdc307ff3903c0 to your computer and use it in GitHub Desktop.
A basic version of your script to run your code on the server. You can also parametrize the python script arguments. This way you will pass the arguments to the dist.sh script and it will pass them to your python script on the server.
scp /path/to/project/directory username@hostname:/path/to/project/on/the/server
ssh username@hostname "cd /path/to/project/on/the/server; python script.py arg1 arg2 arg3"
scp username@hostname:/path/to/project/on/the/server/results .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment