Hi,
I respond again to myself: i solved using the --daemon option.
I did a simple bash script where first i create the connession ovpn:
openvpn --config remote_firm.ovpn --daemon;
after, e sleep for be sure that everything is ok:
sleep 10;
after, I execute the script:
./execute_script.sh
And at the end, I kill the openvpn process;
killall openvpn;
Everything ok.
Regards,
JS