title: using python expect to run openvpn
body: <p>i need a python script to run open vpn automaticaly
  but i use sudo for run the open vpn</p>
  
  <pre><code>sudo openvpn --cd /etc/openvpn --config openvpn.conf &amp;
  </code></pre>
  
  <p>thats my terminal command.  i have to give the password for sudo, can i use pexpect to run that command?
  and i have to get the exit code because i want to know that the openvpn is run succesful or not</p>
  
  <p>thanks</p>