Xojo Conferences

« MBS FileMaker Plugin … | Home | MBS FileMaker Plugin,… »

Sudo on Linux

We got a new LinuxSuMBS class for Linux to run commands as root if needed:

dim s as new LinuxSuMBS s.Command = "/usr/bin/whoami" s.User = "root" s.Alert = "Please Root?" s.Message "Can I install something for you?" if s.ExecuteSudo then MsgBox "OK" else MsgBox s.LastErrorMessage end if

Our example writes a little shell script and runs it as root. Could be useful to write an installer which updates a web app (As example). Of course this is for GUI apps and requires user to enter a root password.
02 02 16 - 16:43
No comments

Remember personal info?

Emoticons / Textile

Hide email:

Small print: All html tags except <b> and <i> will be removed from your comment. You can make links by just typing the url or mail-address.