users@glassfish.java.net

Re: Simple issue: Cannot batch asadmin calls in Windows batch file?

From: Justin Lee <Justin.Lee_at_Sun.COM>
Date: Fri, 05 Feb 2010 10:53:54 -0500

That's correct. In .bat/.cmd, calling another script file will
terminate the process when that other script ends unless you use "call
asadmin blahblahblah"

On 2/5/10 10:46 AM, Bobby Bissett wrote:
> I'm not a batch file expert (or user), but I think you need to use the
> call command since you're calling a batch file from within a batch
> file. This may help:
>
> http://www.computerhope.com/batch.htm
>
> Or Google something appropriate. :)
>
> Cheers,
> Bobby
>
>
> On Feb 4, 2010, at 6:55 PM, glassfish_at_javadesktop.org wrote:
>
>> I'm trying to do something very simple like this in a batch file
>>
>> asadmin start-domain domain1
>> asadmin deploy C:\dumb\dumb1.war
>> asadmin deploy C:\dumb\dumb2.war
>>
>> But my batchfile calls never get past any asadmin call. In other
>> words, whatever the first line in the batchfile is that has an
>> asadmin call, that's the last line of the batchfile that gets executed.
>>
>> Is there a way to get around this?
>> [Message sent by forum member 'wes371' (colleyw_at_uah.edu)]
>>
>> http://forums.java.net/jive/thread.jspa?messageID=384889
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>