From 6944df6e540d57f5ddf04e01d44d3aefd9c4720d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jos=C3=A9=20Valim?=
Date: Mon, 29 Apr 2019 17:54:18 +0200
Subject: Add hostname to -remsh if none is given
The -name option already computes a default
hostname if none is given. This PR adds the
same behaviour to -remsh. Now we can run:
erl -name foo -remsh bar
erl -sname foo -remsh bar
This simplifies deployment scripts as otherwise
they have to compute the hostname by hand or
start an Erlang VM instance only to do so.
---
erts/doc/src/erl.xml | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
(limited to 'erts')
diff --git a/erts/doc/src/erl.xml b/erts/doc/src/erl.xml
index 88ddb03e97..bfd4dd8fe9 100644
--- a/erts/doc/src/erl.xml
+++ b/erts/doc/src/erl.xml
@@ -460,7 +460,10 @@
-
Starts Erlang with a remote shell connected to
- .
+ . Requires either
+ or to be given. If
+ does not contain a hostname, one is automatically taken from
+ or
-
--
cgit v1.2.3