|
Answer» So I write a batch file, which has a task to stop a Tomcat server and to start it again. I use CALL command. For example:
CALL .\shutdown.bat CALL .\Startup.bat
The PROBLEM is that it takes time to stop the server and it tries to start it again before it actually stops.
Do you have any IDEA, how can i wait for the server to stop before to try starting it again?Assuming you are running under Windows 2000 / XP / 2003 / Vista, try this: Code: [Select]start /wait .\shutdown.bat CALL .\Startup.batThank you for your suggestion But it seems that it doesn't work, because the shutdown script terminates IMMEDIATELY and leaves the work to the proper program.
Yes, I am with Windows NT please post contents of startup.bat and shutdown.bat ping 127.0.0.1 -n 60
Use this for a 60 second delay. It WORKS, but it sloppy. You'll see 'Reply from 127.0.0.1.......'
|