[Gambas-user] EXEC with root rights

Brant Wells bwells at ...475...
Wed Jun 23 21:11:21 CEST 2004


Hey Michael...

You could try something like this:
EXEC ["kdesu","-t","-c","sh /tmp/lvtemp.sh"] WAIT AS dProcess

Of Course, it pops up asking for the root password....  It uses kdesu to 
run the script as root.

There's an example of how I use it in the LogView application I 
submitted a few days ago, if that's not clear enough.


Hope This Helps!
~Brant





More information about the User mailing list