Open wohali opened 5 years ago
Can I try this out?
@abyss143 Any open issue is available for someone to work on. Feel free to submit a PR!
AFAIK we do it already here https://github.com/apache/couchdb/blob/master/rel/overlay/bin/remsh#L41
@iilyak that's only cookie, not name, but could you look at #2738 ?
OK, this is now done for *nix platforms thanks to #2738 . We still need it for Windows.
Summary
remsh
could easily be enhanced to guess at the correct value for the node name and Erlang cookie, for the CouchDB running on the current host.Desired Behaviour
Type
remsh
on a machine that's running CouchDB, and it should automatically self-configure so that it can connect to the locally running node.Possible Solution
Use
grep
(or a similar Windows function) to search thevm.args
file for the-name
and-cookie
arguments. Use those as default parameters, if alternatives have not been specified on theremsh
command line.Additional context
Operator happy fingers are important. Being able to type
remsh
on a machine and immediately be at the Erlang REPL is super valuable.