Quote:
Originally Posted by tux'sbestfriend
I use OpenVPN which is great, but every time I restart my computer I have configure it by typing sudo openvpn --config <name of config file>. Obviously this is not practical and so I would like shell script to do this for me. It would be simple if it weren't for two things. First: OpenVPN prompts me for a username and password, it would be really great if I didn't have to enter it manually. I have tried every thing I can think but no success.
|
Read the "Question Guidelines" link in my posting signature. If you have tried everything, you certainly
should have something to POST HERE, to show us what you've scripted so far. We aren't going to write a script for, but will be glad to help.
Quote:
Second: there are options such as service provider and server. It would be helpful to have a menu, something for example similar to the grub boot options screen. My friend is working on something that relies on the ability to navigate the menu using the arrow keys. So I thought I would post for both of us. Lastly please explain the way your suggestions work. Thanks
|
There are THOUSANDS of bash-scripting tutorials you can find, along with examples of menu-driven scripts. The
VERY FIRST HIT in Google for "bash script with menu" is:
http://askubuntu.com/questions/1705/...a-shell-script
...complete with an example.