Erlang: starting a remote node programmatically

后端 未结 2 2039
不思量自难忘°
不思量自难忘° 2021-02-08 22:14

I am aware that nodes can be started from the shell. What I am looking for is a way to start a remote node from within a module. I have searched, but have been able to find noth

2条回答
  •  生来不讨喜
    2021-02-08 23:21

    A bit more low level that pool is the slave(3) module. Pool builds upon the functionality in slave.

    Use slave:start to start a new slave.

    You should probably also specify -rsh ssh on the command-line.

    So use pool if you need the kind of functionality it offers, if you need something different you can build it yourself out of slave.

提交回复
热议问题