title: Bash scripting to login to VPN automatically
body: <p>I am very new to Bash scripting, and am trying to log in to my school's VPN server using my Raspberry Pi.</p>
  
  <p>All I have right now is a file called <code>login.sh</code>, which has this in it:</p>
  
  <pre><code>#!/bin/sh
  sudo openconnect vpn.ucr.edu/engineering
  </code></pre>
  
  <p>So I get this to run to get onto the VPN server but after that it asks on the terminal:</p>
  
  <blockquote>
    <p>Please enter username and password.<br>
    Username: </p>
  </blockquote>
  
  <p>I am confused on how to get it to take my user name automatically, without me manually typing it in. I would also want to do the same thing to automatically enter my password.</p>
  
  <p>How can I write a Bash script that will input the user name and password automatically?</p>