Not sure if this will work for what you need, but can you just "open elevated process.. " to start your process with privileges? The user would have to be able to provide a password of course.
Alternatively, and NOT recommended (because its asking for trouble) you can do this.. echo passwordhere |sudo -S commandHere the -S means to read from stdin, so the echo gets popped in for the password prompt. On Wed, Jul 8, 2015 at 12:09 PM, Glen Bojsza <[email protected]> wrote: > Hi Thierry, > > I already can modify my system so I won't be prompted for a password as > noted in your link but I need something so it will work on systems that are > not modified. > > Since this is being done locally on the machine the ssh -t option won't > help. > > regards, > > On Wed, Jul 8, 2015 at 1:54 PM, Thierry Douez <[email protected]> wrote: > > > Hi Glen, > > > > Not knowing your context, this might not be what you are looking for. > > but as a start? > > > > > > > http://superuser.com/questions/256981/non-interactive-ssh-sudo-prompts-for-the-password-in-plain-text > > > > Regards, > > > > Thierry > > > > ------------------------------------------------ > > Thierry Douez - http://sunny-tdz.com > > sunnYperl - sunnYmidi - sunnYmage - sunnYtext2speech - sunnYrex > > > > > > 2015-07-08 19:35 GMT+02:00 Glen Bojsza <[email protected]>: > > > 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 > > [email protected] > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > [email protected] > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ use-livecode mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
