You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Krishna Mohan Attravanam <ak...@yahoo.co.in> on 2007/05/23 22:01:05 UTC

Waiting for a server to shutdown using waitFor

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"
timeoutproperty="servers.still.running"
checkevery="10">
 <and>
    <not><socket server="${server1.host}"
port="${server1.port}"/></not>
    <not><socket server="${server2.host}"
port="${server2.port}"/></not>
    <not><socket server="${server3.host}"
port="${server3.port}"/></not>
  </and>
</waitfor>

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 ?

Thanks
K

_____________________________________________________
*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
http://in.answers.yahoo.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org