Skip to content

Instantly share code, notes, and snippets.

@robfraz
Created December 10, 2013 01:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robfraz/7884543 to your computer and use it in GitHub Desktop.
Save robfraz/7884543 to your computer and use it in GitHub Desktop.
[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