asadmin multimode --file <filename>
where filename contains the commands one per line.
glassfish_at_javadesktop.org wrote:
> 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
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>