Using sudo in shell
Bob Sneidar
bobsneidar at iotecdigital.com
Fri Jul 10 16:06:39 EDT 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.
Bob S
> 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?
>
> thanks,
>
> Glen
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list