Shell Command with Sudo

Justin Sloan sloan.justin at gmail.com
Fri Jun 11 05:35:16 CDT 2010


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


More information about the use-livecode mailing list