Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remsh should guess -name and -cookie on Windows #2176

Open
wohali opened this issue Sep 5, 2019 · 5 comments
Open

remsh should guess -name and -cookie on Windows #2176

wohali opened this issue Sep 5, 2019 · 5 comments

Comments

@wohali
Copy link
Member

wohali commented Sep 5, 2019

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 the vm.args file for the -name and -cookie arguments. Use those as default parameters, if alternatives have not been specified on the remsh 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.

@ghost
Copy link

ghost commented Oct 16, 2019

Can I try this out?

@wohali
Copy link
Member Author

wohali commented Apr 3, 2020

@abyss143 Any open issue is available for someone to work on. Feel free to submit a PR!

@iilyak
Copy link
Contributor

iilyak commented Apr 6, 2020

@wohali
Copy link
Member Author

wohali commented Apr 6, 2020

@iilyak that's only cookie, not name, but could you look at #2738 ?

@wohali wohali changed the title remsh should guess -name and -cookie remsh should guess -name and -cookie on Windows Apr 22, 2020
@wohali wohali added the windows label Apr 22, 2020
@wohali
Copy link
Member Author

wohali commented Apr 22, 2020

OK, this is now done for *nix platforms thanks to #2738 . We still need it for Windows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants