Executing shell commands (OS X)

Andre Garzia soapdog at mac.com
Wed Jul 7 00:51:01 EDT 2004


On Jul 7, 2004, at 1:26 AM, hershbp at verizon.net wrote:

> While we are at it , I'd like to execute a shell command
> " shell(/usr/local/bin/postmaster -D /usr/local/pgsql/data -i)"
> how would it work.
> or at the same time
> "su - postgres" and then it should put a password, and the to continue 
> the above command ?
> Thanks.
>

check for this items in the online documentation:
Open process
Write to process
Close process

this will allow you to interact with the terminal... remember that 
state is not persistance, so if you open "su" for writing, and then 
close it, when you execute the "postmaster" you'll not be superuser... 
I think in cases like that you should open bash, but someone here might 
have a better idea...

Cheers


-- 
Andre Alves Garzia ð 2004
Soap Dog Studios - BRAZIL
http://studio.soapdog.org



More information about the use-livecode mailing list