I am confused.
Sending the password in a passwordfile is a way to automate this since you don't need a human entering a password on prompt.
If you are paranoid of having to put your password on disk in clear, consider using asadmin change-master-password [b]--savemasterpassword[/b]. That gives a somewhat false sense of security, but at least obfuscates the password somehow :-)
[Message sent by forum member 'km']
http://forums.java.net/jive/thread.jspa?messageID=484556