This is what I found in my Makefile:
run_etop:
erl -name node@127.0.0.1 -setcookie cookie -pa ebin/ -detached -s app
erl -name etop@127.0.0.1 -noinput -s etop -s erlang halt -output text \
-setcookie cookie -interval 1 -lines 20 -accumulate true > etop.log
I start my application (app
) on node@127.0.0.1
and then I start another node (etop@127.0.0.1
) from which I connect to the first node and where I run etop.
To get list of etop options, try etop:help()
in erlang console.