title: Openvpn leading -- error parse from txt username and password
body: <p>Hello I'm trying to access openvpn from ubuntu command line by trying to enter the sudo password and the username and password for openvpn altogether based on those answers:</p>
  
  <p>sudo password from command line:</p>
  
  <p><a href="https://stackoverflow.com/questions/11955298/use-sudo-with-password-as-parameter">Use sudo with password as parameter</a></p>
  
  <p>openvpn username and password from command line:</p>
  
  <p><a href="https://stackoverflow.com/questions/38869427/linux-passing-username-and-password-in-command-line">linux: passing username and password in command line</a></p>
  
  <p>This is the command I'm entering:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>echo 12345 | sudo -S openvpn &lt;openvpnpath&gt; --auth-user-pass pass.txt</code></pre>
  </div>
  </div>
  </p>
  
  <p>Where inside pass.txt I have:</p>
  
  <p>a@gmail.com</p>
  
  <p>56789</p>
  
  <p>But I'm getting the following error:</p>
  
  <p>Options error: I'm trying to parse "/etc/openvpn..." as an --option parameter but I don't see a leading '--'
  Use --help for more information.</p>
  
  <p>Am I missing something? Thnks!</p>