shutting down a node remotely
Mon Jun 6 19:33:52 CEST 2005
I need to shut down a node from another node. I know how it can be done
with a function like:
rpc:cast(Node, init, stop, ).
but is there a way to accomplish the same using "-remsh" or another
erl's command-line option, like:
host> erl -remsh -sname a -cookie COOKIE -s init stop
What I am getting in this case is that init:stop() gets evaluated at the
node instead of
I was also thinking of something like:
erl -sname a -s rpc cast '' init stop 
but the interpreter doesn't parse the last  parameter as a list.
More information about the erlang-questions