shutting down a node remotely

Matthias Lang <>
Mon Jun 6 20:02:00 CEST 2005


Serge Aleynikov writes:
 > I need to shut down a node from another node.  I know how it can be done 
 > with a function like:
 > 
 > f(Node) ->
 >    rpc:cast(Node, init, stop, []).
 > 
 > but is there a way to accomplish the same using "-remsh" or another 
 > erl's command-line option, like:

How about

  echo "rpc:call(Node, init, stop, [])." | erl -sname a

This works under *nix. I don't know if it'll work under windows.

Matthias



More information about the erlang-questions mailing list