You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by da...@apache.org on 2014/02/06 23:12:26 UTC

[12/12] couchdb commit: updated refs/heads/1843-feature-bigcouch to 152a21a

Add a dev/remsh command for connecting to nodes

This allows users to connect to development nodes started using the
dev/run command.


Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/152a21ad
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/152a21ad
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/152a21ad

Branch: refs/heads/1843-feature-bigcouch
Commit: 152a21ad2ef4f6e1a5d644f1918d1f6253d0335d
Parents: 3e09a9a
Author: Paul J. Davis <pa...@gmail.com>
Authored: Thu Feb 6 16:11:37 2014 -0600
Committer: Paul J. Davis <pa...@gmail.com>
Committed: Thu Feb 6 16:11:37 2014 -0600

----------------------------------------------------------------------
 dev/remsh | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/152a21ad/dev/remsh
----------------------------------------------------------------------
diff --git a/dev/remsh b/dev/remsh
new file mode 100755
index 0000000..428fa6f
--- /dev/null
+++ b/dev/remsh
@@ -0,0 +1,18 @@
+#!/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
+
+NAME="remsh$$@$HOST"
+NODE="node$NODE@$HOST"
+COOKIE=monster
+erl -name $NAME -remsh $NODE -setcookie $COOKIE -hidden