newby: erl in a batch

Luc Taesch ltaesch@REDACTED
Wed Jul 19 09:03:10 CEST 2000


Id like to have erlang started in a batch, and execute, say
cot2dot.erl:convert().

1) should I create a start() function, and should cot2dot be a server
behaviour?

2) how can i read the arguments passed on the command line (argc, argv
in C),
so i can do
xxx 1 2 3
if xxx is a batch doing erl -scot2dot $1 $2 $3 , and read 1 2 3?

3) how can i improve any performance a load time, like suppressing the
load of .erlang, and should i have the beam in the current dir, or where
?

are where could i find these things  in the doc ?

thks
Luc

--
First, they ignore you.
Then, they laught at you.
Then, they fight you.
Then, you win.

--- Gandhi.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20000719/d91d3232/attachment.htm>


More information about the erlang-questions mailing list