I want to write a script that will log me into my vpnc account, but I have to log into an su shell before I can run vpnc. I want to be able to run the script from non su, so I want the script to gain root access and then automatically run and log into vpnc. There is no concern for security.
I have been working with backticks trying to use shell commands such as sudo without results.
From your experience what would be the best way to accomplish this task using perl?