[erlang-questions] Avoid ~/.erlang.cookie creation

Salikhov Dinislam Dinislam.Salikhov@REDACTED
Fri May 19 13:59:34 CEST 2017


An afterthought:
Wouldn't it be useful if erl would warn about incorrect options passed?
IMO, it could reduce time to find some silly errors (like my own :) ).

On 05/19/2017 12:24 PM, Dmytro Lytovchenko wrote:
> Right, i always confuse -setcookie and -cookie
> Not the nicest user experience with replacing a name with a similar 
> name, and no actual error when the wrong one is used
>
> 2017-05-19 11:18 GMT+02:00 Salikhov Dinislam 
> <Dinislam.Salikhov@REDACTED 
> <mailto:Dinislam.Salikhov@REDACTED>>:
>
>     > The correct command line argument is -cookie, single minus
>     > -setcookie is deprecated
>
>     http://erlang.org/doc/man/erl.html
>     <http://erlang.org/doc/man/erl.html> says that *-cookie*is
>     "obsolete flag without any effect".
>
>     > Also you have a typo in it — -setcoo*_ke
>
>     _*Ah, you're right. My bad. Thank you.
>
>     On 05/19/2017 12:13 PM, Dmytro Lytovchenko wrote:
>>     The correct command line argument is -cookie, single minus
>>     -setcookie is deprecated
>>     Also you have a typo in it — -setcoo*_ke_*
>>
>>     2017-05-19 11:06 GMT+02:00 Salikhov Dinislam
>>     <Dinislam.Salikhov@REDACTED
>>     <mailto:Dinislam.Salikhov@REDACTED>>:
>>
>>         Hello,
>>
>>         Is there a way to prevent erl from creating $HOME/.erlang.cookie?
>>         I run it as follows:
>>             erl -sname test_name -setcooke placeholder_cookie
>>         And VM creates ~/.erlang.cookie with some random content.
>>
>>         -- 
>>         Dinislam Salikhov | Senior Developer | Kaspersky Lab
>>         39A/2 Leningradskoe shosse, Moscow, 125212, Russia |
>>         www.kaspersky.com <http://www.kaspersky.com>
>>
>>         _______________________________________________
>>         erlang-questions mailing list
>>         erlang-questions@REDACTED <mailto:erlang-questions@REDACTED>
>>         http://erlang.org/mailman/listinfo/erlang-questions
>>         <http://erlang.org/mailman/listinfo/erlang-questions>
>>
>>
>
>     -- 
>     Dinislam Salikhov | Senior Developer | Kaspersky Lab
>     39A/2 Leningradskoe shosse, Moscow, 125212, Russia |www.kaspersky.com <http://www.kaspersky.com>
>
>

-- 
Dinislam Salikhov | Senior Developer | Kaspersky Lab
39A/2 Leningradskoe shosse, Moscow, 125212, Russia | www.kaspersky.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20170519/da0cef86/attachment.htm>


More information about the erlang-questions mailing list