Ideas:

1) sudo shoes ...

2) visudo, then add: your_user_name localhost= NOPASSWD: /usr/local/ bin/foobar

3) man sudo

4) ixquick sudo howto

Keep in mind any security implications...

HTH,
Roy

On Jun 17, 2009, at 3:03 AM, niedh 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'


thanks

Reply via email to