cmdfiles

Per Hedeland per@REDACTED
Thu Jan 27 19:26:53 CET 2000


"Philip van Gastel (ETM)" <Philip.van.Gastel@REDACTED> 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
per@REDACTED



More information about the erlang-questions mailing list