forked from mlmurray/gekko
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added helper shell scripts to launch gekko with user config files
- Loading branch information
1 parent
424ab7f
commit b2110e6
Showing
5 changed files
with
35 additions
and
2 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# navigate to gekko folder, change this if your location is different | ||
cd ~/gekko | ||
|
||
# zip previous log files for this config | ||
zip -vu log/gekko_logs.zip log/gekko_log.$1*.txt | ||
|
||
# remove raw text files now that they're zipped | ||
rm log/gekko_log.$1*.txt | ||
|
||
# finally launch gekko and log output to log file as well as stdout | ||
node gekko config="config/user/$1.js" 2>&1 | tee log/gekko_log.$1.txt | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/sh | ||
screen -dmS gekko_$1 ~/gekko/bin/gekko_launch.sh $1 | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
tail -f ~/gekko/log/gekko_log.$1.txt |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
screen -dR gekko_$1 |
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