[glade--] System call
Arthur <[email protected]> Sat, 19 Feb 2005 22:51:09 -0300
| Newsgroups | gmane.comp.gnome.glademm |
|---|---|
| Message-ID | <[email protected]> |
Hey, guys.
Glade and glade-- are running ok here. The fact is I want to build an=20
application (I've built it on glade) to run "/etc/init.d/net.ath0 start"=20
and "stop", too. For this, I need the root password, asked by 'su' comman=
d.
I thought trying:
(...)
#include <iostream>
void on_connectbutton_clicked()
{
system("su -");
// Then I would have to give the root password with a command - I=20
don't know how.
system("/etc/init.d/net.ath0 start);
(...)
}
The root password should be typed in a entry box, let's say=20
'rootpasswordentry'. I know I could get it's text with=20
rootpasswordentry->get_text().
Any idea, guys? What do you recommend me to read? Should I continue with=20
Gtkmm 2.4 Book (it seems just like a reference book since the =A8 "Button=
"=20
chapter)?
Thank you very much. I really want to learn how to program with Gtkmm=20
and Glade.
Arthur Maciel