Something like
erl -s crypto start -s application start public_key
works for crypto but not application:start(..). Typically I have call application supervisor but not application itself. What’s the normal way of doing it?
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.
The -s flag expects
and executes it as
So, it passes the arguments as a list.
When running
-s application start public_keyit wil callapplication:start([public_key]), which isn’t supported. This works:application:start(public_key)I did not found a workaround for it without creating a module that contains a function to start up the public_key application, like:
And call it like