I can validate a config file with running the command
file:consult("settings.config").
Can I do this from a linux command? I know I can open the erl shell and run this command, but I want to do this with one shell command
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.
You could use an escript file to do this. Something like this:
validate.escript
Then you can invoke it from the command line:
Which will print the list of the terms of the config or throw an error if something went wrong.