On 7/3/19 8:28 AM, Dalton Calford via use-livecode wrote:
I am looking to read/write odbc settings from within livecode, but due to
user rights, I want to allow for sudoer style rights elevation.
Is there a way to present the user with a dialog asking for password from
within livecode?
sudo -S is your friend. Try something like this:
on mouseUp pMouseButton
local tCommands
local tPassword
put "apt update" into tCommands
ask password "type your sudo password"
put it into tPassword
get shell("echo" && tPassword && "| sudo -S" && tCommands)
put it into field 1
end mouseUp
--
Mark Wieder
ahsoftw...@gmail.com
_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode