Java Mailing List Archive

Apache Ant Archive

» Ant Users List
» Ant Developers List
Waiting for a server to shutdown using waitFor

Waiting for a server to shutdown using waitFor

2007-05-23       - By Krishna Mohan Attravanam

Hi all,

I am using the following tasks within a target that
check to see if the servers are shutdown or not?

<waitfor maxwait="120" maxwaitunit="second"
   <not><socket server="${}"
   <not><socket server="${}"
   <not><socket server="${}"

My question is: Is there a deterministic way of
finding out if the server has shutdown completely?
What if the timeout value is not sufficient ? Any
thoughts ?


*Half of being smart is knowing what you're dumb at
*To err is human--and to blame it on a computer is even more so
*Gravity is not responsible for people falling in love

Yahoo! India Answers: Share what you know. Learn something new

To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 - Jax Systems, LLC, U.S.A.