gbonner0906
Programmer
I am writing a program in perl for the first time (other than HELLO WORLD which I'm not counting) and I need to know how to open up a new terminal window and run a program that has to be run as root.
What I've got so far is
"gnome-terminal --execute sudo asterisk -vvvvvvc"
but then it asks me for a password and I get stuck. If I enter
"gnome-terminal --execute sudo asterisk -vvvvvvc $password"
on my own, I can achieve the desired effect, but when I try it in perl, my program just freezes and quits responding. Ideas?
What I've got so far is
"gnome-terminal --execute sudo asterisk -vvvvvvc"
but then it asks me for a password and I get stuck. If I enter
"gnome-terminal --execute sudo asterisk -vvvvvvc $password"
on my own, I can achieve the desired effect, but when I try it in perl, my program just freezes and quits responding. Ideas?