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 100000* * * *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.