[erlang-questions] Use several file server processes

Vladimir Gordeev gordeev.vladimir.v@REDACTED
Tue May 30 18:57:23 CEST 2017


Greetings,

I want to start separate erlang shell processes (via shell:start/2) on my
erlang node. I want each of these shells to have their own CWD, that could
be read/written by file:get_cwd/0, file:set_cwd/1.

I hoped to find something like that:
http://erlang.org/doc/apps/stdlib/io_protocol.html but for file operations.

I looked up in stdlib file.erl and discovered that it makes gen_server:call
to process registered under file_server_2, which is hardcoded in source.

There is not way to achieve what I want?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20170530/f788db80/attachment.htm>


More information about the erlang-questions mailing list