Shell Command with Sudo

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


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

With expect you can automate many command line things.



On Fri, Jun 11, 2010 at 7:35 AM, Justin Sloan <sloan.justin at>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
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:

-- All We Do Is Code.

More information about the Use-livecode mailing list