On Wed, Jun 17, 2009 at 4:03 AM, niedh<[email protected]> wrote:
> Hey,
>   I want to write a little shoes program    ,and it will call the bash..
>   eg:
>   Shoes.app do |app|
>      button('execute command as root') {  system("sudo
> /usr/local/bin/.....")}
>   end
>
>  when i click the button,   it will ask me the password in the console,  is
> there some way to avoid this,eg when it need read datas from stdin, pop up a
> 'ask window'

Maybe something like IO.popen will help you here.

http://www.ruby-doc.org/core/classes/IO.html#M002267

-- 
Seth Thomas Rasmussen
http://greatseth.com

Reply via email to