Using sudo in shell
bobsneidar at iotecdigital.com
Fri Jul 10 22:06:39 CEST 2015
Not without passing the current administrator password in cleartext. I have done this before by simply creating a multiline shell script in a variable. It will act as though a user was typing in each line and hitting return. Sudo only needs to be authenticated once per terminal session, so take care that you don’t put the password after every sudo command.
> On Jul 8, 2015, at 10:35 , Glen Bojsza <gbojsza at gmail.com> wrote:
> I was wondering if there is a way to do a shell that has sudo in it?
> On the first attempt (Note dart is an internal application)
> put shell ("sudo dart")
> I get the following error message
> sudo: no tty present and no askpass program specified
> Is there any way to run sudo from the shell?
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
More information about the use-livecode