Created
January 27, 2014 14:40
-
-
Save trestoa/8649678 to your computer and use it in GitHub Desktop.
Automatically deploys and LinkJVM program to the link
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
IP="1.2.3.4" | |
JAR_NAME="myjar.jar" | |
WRAPPER_NAME="wrapper.c" | |
PROJECT_NAME="myproject" | |
#Upload the wrapper and the jar | |
scp JAR_NAME root@$IP:/kovan/lib/$PROJECT_NAME/ | |
scp WRAPPER_NAME root@$IP:/kovan/bin/$PROJECT_NAME/ | |
#Compile the wrapper | |
ssh root@$IP "cd /usr/bin/$PROJECT_NAME; gcc -o PROJECT_NAME $WRAPPER_NAME, rm WRAPPER_NAME" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment