#!/usr/bin/env escript Process.setproctitle($0) %%! -name riakstatuscheck@127.0.0.1 -hidden main([]) -> main(["riak@127.0.0.1"]); main([Node]) -> io:format("~p\n", [ rpc:call(list_to_atom(Node), riak_kv_console, ringready, [[]]) ]).