是否使用Erlang etop将信息转储到文件?
使用Erlang etop将Erlang程序信息转储到文件的命令行选项是什么?是否使用Erlang etop将信息转储到文件?,erlang,erlang-escript,Erlang,Erlang Escript,使用Erlang etop将Erlang程序信息转储到文件的命令行选项是什么? 如果这不能在命令行中完成,可以在escript中完成吗?这是我在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 \
如果这不能在命令行中完成,可以在escript中完成吗?这是我在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
我在node@127.0.0.1
然后启动另一个节点(etop@127.0.0.1
)从中连接到第一个节点并在其中运行etop
要获取etop选项列表,请在erlang控制台中尝试
etop:help()
。这是我在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
我在node@127.0.0.1
然后启动另一个节点(etop@127.0.0.1
)从中连接到第一个节点并在其中运行etop
要获取etop选项列表,请在erlang控制台中尝试
etop:help()
。etop是否可以只输出一次数据,而不是每“间隔”一次连续输出数据?您使用“>etop.log”的示例不会导致etop覆盖最后的输出数据,而是日志文件不断增长。我查看了etop:help(),但找不到这样做的选项。您可以使用tail
命令从日志文件中获取最后一次输出。etop是否可以只输出一次数据,而不是每“间隔”一次连续输出数据?您使用“>etop.log”的示例不会导致etop覆盖最后的输出数据,而是日志文件不断增长。我查看了etop:help(),但找不到这样做的选项。您可以使用tail
命令从日志文件中获取最后的输出。