ネタは腐るほど溜まってるが腐ってるので氣力(
erl -noshell -eval 'io:format("~s~n", [erlang:system_info(otp_release)]), init:stop().'
erlang:system_info/1 を使ふ。
Serverspecだと
describe command(%{erl -noshell -eval 'io:format("~s~n", [erlang:system_info(otp_release)]), init:stop().'}) do its(:stdout) { should match(/18/) } end
と書いてゐる。