On 3/21/12, sundar_ima <sundar_...@rediffmail.com> wrote: > > I am creating an application which calls bash scripts many time with > sudo/root privilege. Though i can execute bash script with either kdesu or > gksu, it asks password many times. Instead it would be nice if any one help > me on opening an application with sudo/root access. I have searched in > google and found only this link on the subject > http://old.nabble.com/Re%3A-Gambas-app-run-as-root-p29871170.html > http://old.nabble.com/Re%3A-Gambas-app-run-as-root-p29871170.html . However > when i tried (last example by Joe1962) the example, i got an error in > "Global.root = TRUE" line. In AutoIT adding a line "#include Admin" will > solve the problem. > --
Sorry, the example was not the whole app. You need a Global class with variable named "root" and defined as boolean. It was used to know when the app was already running as root. I cannot be more clear, or send the whole code right now because I just lost most of my stuff due to a hard drive failure. regards, Joe1962 ------------------------------------------------------------------------------ Better than sec? Nothing is better than sec when it comes to monitoring Big Data applications. Try Boundary one-second resolution app monitoring today. Free. http://p.sf.net/sfu/Boundary-dev2dev _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user