shell() and sudo

Alex Rice alrice at
Mon May 12 12:03:51 CDT 2003

On Monday, May 12, 2003, at 01:36  AM, Rolf Kocherhans wrote:

> How can I make the shell() function work when the shell asks for a 
> password ?
> I can do everything what I want with shell(), but I have not figured 
> out how I can answer to a request of entering a Password !
> Anyone got a clue...

Not tested, but probably "open process" is what you need
open process "/bin/sh" for update

Then you could read and write from the shell process.

write "sudo myApp" & linefeed to process
read from process
write tPasswd & linefeed to process

Alex Rice, Software Developer
Architectural Research Consultants, Inc.
alrice at
alrice at

More information about the use-livecode mailing list