Shell Command with Sudo
andre at andregarzia.com
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 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?
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
http://www.andregarzia.com All We Do Is Code.
More information about the Use-livecode