lc shell and command line
Roger Eller
roger.e.eller at sealedair.com
Fri Nov 18 12:48:48 EST 2011
On Fri, Nov 18, 2011 at 12:26 PM, Andre Garzia wrote:
> As far as I know, you can't ask for the user password and pass it to a
> shell call with clever use of pipes. That is not how sudo works, you can't:
>
> cat password.txt | sudo cd .. or sudo cd .. < password.txt
>
>
How about this method?
shell("pw=" & tPassword & "; echo $pw | sudo -S command")
SOURCE:
http://www.mail-archive.com/use-revolution@lists.runrev.com/msg137100.html
~Roger
More information about the use-livecode
mailing list