Terminal Asks for Email and Password, how do I Programmatically fill it out (in Ruby)?
Posted
by viatropos
on Stack Overflow
See other posts from Stack Overflow
or by viatropos
Published on 2010-04-11T10:56:32Z
Indexed on
2010/04/11
11:03 UTC
Read the original article
Hit count: 157
I am running a command to push files to Google App Engine, and it might ask me for my email and password:
$ appcfg.py update .
Email: [email protected]
Password:
I am running that in Ruby right now using this: %x[appcfg.py update .]
. How can I fill out the email and password? I have seen something like this with capistrano:
%x[appcfg.py update .] do |channel, stream, data|
channel.send_data "#{yaml['production']['email']}\n" if data =~ /^Email:/
end
...but haven't figured out how to set that up without it.
What's the best way to fill out things the command line asks for programmatically?
© Stack Overflow or respective owner