users@glassfish.java.net

Re: Simple question: How do you run a script in asadmin?

From: <glassfish_at_javadesktop.org>
Date: Thu, 30 Jul 2009 19:21:34 PDT

You can set the port, user passwordfile options as environment variablex using export command.

e.g. set the following in the file and the subsequent commands will use these options:
export AS_ADMIN_USER=admin
export AS_ADMIN_PORT=4848
export AS_ADMIN_PASSWORDFILE=/user/home/passwordfile.txt
[Message sent by forum member 'janey' (janey)]

http://forums.java.net/jive/thread.jspa?messageID=358317