Skip to content

Instantly share code, notes, and snippets.

@NTCoding
Created March 13, 2013 10:01
Show Gist options
  • Select an option

  • Save NTCoding/5150712 to your computer and use it in GitHub Desktop.

Select an option

Save NTCoding/5150712 to your computer and use it in GitHub Desktop.
nodetool_extract
["rpc", Module, Function | RpcArgs] ->
case rpc:call(TargetNode, list_to_atom(Module), list_to_atom(Function),
[RpcArgs], 60000) of
ok ->
ok;
{badrpc, Reason} ->
io:format("RPC to ~p failed: ~p\n", [TargetNode, Reason]),
halt(1);
_ ->
halt(1)
end;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment