title: How to run a custom function when starting an Erlang shell / node? (That is, a function within an `.erl` file)
body: <p>I can start an Erlang file either via the command line or bash script:</p>
  
  <pre><code>exec erl file.erl
  </code></pre>
  
  <p>But, I cannot seem to find out how to directly start a function within this file.</p>
  
  <p>e.g. </p>
  
  <pre><code>exec erl file.erl -f function()
  </code></pre>
  
  <p>Any suggestions appreciated...</p>