I have the following problem :
1) On master node, I start a remote erlang node with slave:start
command, using ssh
2) I spawn a process in this node
3) In the spawned process, I run inet:gethostname() command, which
give me the remote hostname -> OK
4) In the spawned process, I open /proc/sys/kernel/hostname : I get
the local hostname -> It's not that I want
Do you know :
- if this comportement is normal : a remote node started with
slave:start, which use file:open command access to master node
filesystem ?
- if there is a solution to access to the remote node file system ?
Thank you for your help.
Regards,
Bertrand
________________________________________________________________
erlang-questions (at) erlang.org mailing list.
See http://www.erlang.org/faq.html
To unsubscribe; mailto:erlang-questio...@erlang.org
Network IOs are not redirected, but stdout and file IO seems to be :-)
Do you know a solution to have the same function as slave:start,
without redirection ?
- start a remote node using rsh
- stop remote nodes when killing master
Actually, I do that with os:cmd("ssh remote erl ..."), but it's not
very clean. And the remote erlang vm is not killed when I kill the
master.
Regards,
Bertrand