shutting down a node remotely

Vladimir Sekissov <>
Mon Jun 6 20:23:32 CEST 2005


Good day,


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

You could try `erl_call':

echo 'init:stop().' | erl_call -sname node -e

It is usually compiled to

$ERL_TOP/lib/erl_interface-*/bin/erl_call

Best Regards,
Vladimir Sekissov



More information about the erlang-questions mailing list