I can run many erlang nodes from batch file. But, can i pass some arguments to erl that cause it to execute some commands?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you wish to start a node, and for example start an erlang application, or run a few lines for the start up of the node you can run the erl command the following way
or starting the node with several commands
the same has above but putting the node into a background process
But if you want to run erlang in a more “scriptwise” way I do suggest you look into escript and the following question like D.Nibon suggested