Hi Peter,

try this batch file (startAndStop.bat):

> @echo off
> echo.
> echo Calling startup
> echo.
> call startup.bat
> echo.
> echo Started
> echo.
> pause
> 
> echo.
> echo Calling shutdown
> echo.
> call shutdown.bat
> echo.
> echo Shut down
> echo.
> pause
> 
> startAndStop.bat

The pause command is necessary, because it takes Tomcat a few 
seconds to shut down. The next call will be done after you'll 
have pressed any key.

This script is an endless loop because it calls itself in the 
end. To end it press Ctrl-C or the X-Button in the upper right 
corner.

Andreas


On 7 Nov 2002 at 11:05, Peter Lee wrote:

> I need to shutdown and then restart tomcat repeatedly for my
> testing purposes. I am using a Windows batch file which will call
> shutdown.bat and startup.bat. But each time Tomcat did not
> restart. Is there any better way of doing this?
> 
> Thanks


--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>

Reply via email to