users@glassfish.java.net

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

From: <glassfish_at_javadesktop.org>
Date: Thu, 08 May 2008 09:13:35 PDT

Is there a way to run a script with asadmin? Either from the interactive shell, or using the command line and passing in user and passwordfile options... I've searched this forum, google and the docs and haven't really seen anything stating how it can be done.

I've noticed the *sometimes* you can just paste a bunch of commands seperated by newlines, and it works... but sometimes, depending on the type of command I do, it seems that asadmin will exit afterwards (no errors, all commands executed successfully that were pasted).
[Message sent by forum member 'asherwin' (asherwin)]

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