Or if you have perl installed:
REM -- sleep for 2 seconds
perl -e 'sleep(2);'
-Tim
Turner, John wrote:
As far as I know, there isn't one. You can only use PAUSE which waits for
user input before continuing. That won't help you, though, if you're
sitting at your keyboard tapping the spacebar or Enter key as soon as you
see the pause prompt.
You could try installing something like Cygwin and writing a shell
script...then you'd have access to the "sleep" command. Otherwise, you're
stuck with counting to yourself in-between batch file iterations.
John
-----Original Message-----
From: Peter Lee [mailto:tomcatuser@;shaw.ca]
Sent: Friday, November 08, 2002 4:16 AM
To: Tomcat Users List
Subject: Re: Shutting down and restarting Tomcat
On 8 Nov 2002, at 2:43, yves lambert wrote:
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>
your batch file must be like that
restart.bat
call %CATALINA_HOME%\bin\shutdown.bat
call %CATALINA_HOME%\bin\startup.bat
if it doesn't work you may set a delay between the 2 commands
What is the command for setting the delay in a Windows batch file?
I used "delay" but it didn't work.
Thanks
--
To unsubscribe, e-mail: <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>
--
To unsubscribe, e-mail: <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>