Shell Command with Sudo

Andre Garzia andre at andregarzia.com
Fri Jun 11 11:33:34 EDT 2010


Justin,

I always though you could not pipe passwords into sudo. One way to do this
kind of stuff is to use the "expect" tool.

http://expect.sourceforge.net/

With expect you can automate many command line things.

HTH

Andre

On Fri, Jun 11, 2010 at 7:35 AM, Justin Sloan <sloan.justin at gmail.com>wrote:

> Hello All,
>
> I am trying to run a shell() command in revStudio in order to execute some
> terminal commands as the superuser on a Mac. An Ubuntu terminal will accept
> the superuser password using a pipe, such as "pass | sudo -S command", but
> Mac's terminal will not accept the password on the same line.
>
> Is there a way to run multiple commands from a single rev shell() call? Or,
> can I somehow followup a shell() call with the password?
>
> Thanks,
>
> Justin_______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>



-- 
http://www.andregarzia.com All We Do Is Code.



More information about the use-livecode mailing list