i need a python script to run open vpn automaticaly but i use sudo for run the open vpn
sudo openvpn --cd /etc/openvpn --config openvpn.conf &
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
thanks