Ping the riak node, print the response and halt the system.
erl -setcookie riak -name "${USER}-"@127.0.0.1 -noshell \
-eval "Res = net:ping('dev1@127.0.0.1'), io:put_chars(standard_error,io_lib:format(\"~p\",[Res]))." \
-eval "erlang:halt()."
As a result, pong
is printed to the console, the response from the remote node, we're ready to start executing Erlang.