thanks for the reply
Actually , my problem is :
I had lots of linux servers, and I want to copy my id_rsa.pub to all
these servers and append it to the ssh auth file,
so i can ssh to these servers without enter the password later.
i want to accomplish this task in ruby , so i write a script, iterater
the server list, call system("scp .........")
but every time it ask me for the password on the console,so is there any
way to avoid the "password-input-action"?
eg redirect the $stdin ???
PS: when i run the script in NetBeans, it will popup a dialog the let me
input the password, does shoes has the same behavior?
Sorry for confusing you.......
Roy Wright wrote:
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