Hello i was trying to issue some distributed erlang commands such as erl -sname
/ erl -name
and i do not get a response.
If i put .
at the end it says syntax error.
If i don't it won't return anything and it will treat it like an unfinished command.
I thought this is only for these commands but it seems there are others that will not do anything like erl -man <module_name>
.
Do i need to set something up to be able to issue erl
commands.
P.S OS is Windows 10
.
1条答案
按热度按时间dpiehjr41#
The
erl
command (with or without-sname
) is simply how you run Erlang from a console window like cmd or powershell. On Windows, to get a fully working Erlang shell with command line editing etc, you need to use the specialwerl
executable instead oferl
- this is due to how Windows consoles work. Try opening a cmd or powershell windows and see how it works.If you open the properties of the icon you have used for starting Erlang, you will see that the command it is running is
werl
(from the Start menu you have to use "more -> open file path" to find the actual icon first). You can edit this and add options like-sname yournodename
to the command, or you can create a copy of the icon (e.g. to your desktop) and give it a more suitable name, like "My Erlang node", and then edit its options.