[appengine-java] Re: Set password for appcfg.sh update
You can use an expect script http://en.wikipedia.org/wiki/Expect like this: *set username [lrange $argv 0 0]* *set password [lrange $argv 1 1]* *set warDir [lrange $argv 2 2]* *set gaeHome [lrange $argv 3 3]* *set timeout -1* * * *# spawns appcfg.sh* *spawn $gaeHome/bin/appcfg.sh --passin --email=$username update $warDir* *match_max 10* * * *expect {* * default {exit 0}* * # Look for passwod prompt* * *?assword** *}* * * *# Send password aka $password* *send -- $password\r* * * *# send blank line (\r) to make sure we get back to gui* *send -- \r* *expect eof* -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/73r9YlZjy6gJ. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Set password for appcfg.sh update
Ben, Have you tried the option(s) (--email and) --passin? Ian On Mar 22, 7:08 pm, Benjamin Muschko benjamin.musc...@gmail.com wrote: Hi, Is there way to use a pre-defined password (e.g. set as a parameter or from some file) for the update task (http://code.google.com/appengine/ docs/java/tools/uploadinganapp.html)? Unfortunately, I couldn't find an appropriate parameter. I'd like to upload my app to App Engine as part of an automated Continuous Integration process without having to enter the password on the command-line. Thanks, Ben -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Set password for appcfg.sh update
Hi Ian, Yeah, --email only lets you define your username. --passin is used to make sure that it should _not_ store the password and ask you for the password every time. I'd need something like --password. ;-) Thanks, Ben On Mar 23, 3:24 am, Ian Marshall ianmarshall...@gmail.com wrote: Ben, Have you tried the option(s) (--email and) --passin? Ian On Mar 22, 7:08 pm, Benjamin Muschko benjamin.musc...@gmail.com wrote: Hi, Is there way to use a pre-defined password (e.g. set as a parameter or from some file) for the update task (http://code.google.com/appengine/ docs/java/tools/uploadinganapp.html)? Unfortunately, I couldn't find an appropriate parameter. I'd like to upload my app to App Engine as part of an automated Continuous Integration process without having to enter the password on the command-line. Thanks, Ben -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Set password for appcfg.sh update
Sorry about that, since I assumed that passin did the same thing that the (non-existent?) --password should do! Silly me. Good luck in your search, and hopefully a Googler can answer your question. On Mar 23, 11:24 am, Benjamin Muschko benjamin.musc...@gmail.com wrote: Hi Ian, Yeah, --email only lets you define your username. --passin is used to make sure that it should _not_ store the password and ask you for the password every time. I'd need something like --password. ;-) Thanks, Ben On Mar 23, 3:24 am, Ian Marshall ianmarshall...@gmail.com wrote: Ben, Have you tried the option(s) (--email and) --passin? Ian On Mar 22, 7:08 pm, Benjamin Muschko benjamin.musc...@gmail.com wrote: Hi, Is there way to use a pre-defined password (e.g. set as a parameter or from some file) for the update task (http://code.google.com/appengine/ docs/java/tools/uploadinganapp.html)? Unfortunately, I couldn't find an appropriate parameter. I'd like to upload my app to App Engine as part of an automated Continuous Integration process without having to enter the password on the command-line. Thanks, Ben -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.