Created
December 10, 2013 01:47
-
-
Save robfraz/7884543 to your computer and use it in GitHub Desktop.
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
[01:45:18][rob@Pestilence2] ~/cloudant/dbcore> cat rel/remsh | |
#!/bin/bash | |
if [ -z $NODE ]; then | |
if [ -z $1 ]; then | |
NODE=1 | |
else | |
NODE=$1 | |
fi | |
fi | |
if [ -z $HOST ]; then | |
HOST="127.0.0.1" | |
fi | |
VSN=`grep rel.*dbcore rel/reltool.config | awk '{print $3}'` | |
VSN=`echo $VSN | sed -e 's/^\"//g' -e 's/\",$//g'` | |
NAME="remsh$$@$HOST" | |
NODE="dev$NODE@$HOST" | |
BOOT=./rel/dev1/releases/$VSN/start_clean | |
COOKIE=monster | |
erl -name $NAME -remsh $NODE -setcookie $COOKIE -hidden -boot $BOOT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment