cmdfiles

Per Hedeland <>
Thu Jan 27 19:26:53 CET 2000


"Philip van Gastel (ETM)" <> wrote:
>A very short question, is there a possibility of using command files,
>containing Erlang code and run it from command line, eg.

Yet another way:

% cat /tmp/cmd.bat 
io:format("~w~n", [erlang:now()]),
halt().
% erl -noshell -s file eval /tmp/cmd.bat
{948,997185,154349}
%

--Per Hedeland




More information about the erlang-questions mailing list