Skip to content

Instantly share code, notes, and snippets.

@balamaci
Created November 5, 2014 20:32
Show Gist options
  • Save balamaci/fe8de7b5db1b52c70c20 to your computer and use it in GitHub Desktop.
Save balamaci/fe8de7b5db1b52c70c20 to your computer and use it in GitHub Desktop.
SSH execute on remote machine
ssh flyby@inita 'bash -s' << 'DELIMITAT'
cd /home/flyby/airprice
/home/flyby/airprice/flyby-agent/command.sh stop
/home/flyby/airprice/flyby/command.sh stop
/home/flyby/airprice/build.sh
/home/flyby/airprice/flyby/command.sh start
/home/flyby/airprice/flyby-agent/command.sh start
DELIMITAT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment