ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Akhil Kumar <akhil.ku...@infogain.co.uk>
Subject Response timed-out waiting for
Date Thu, 05 Aug 2004 12:09:41 GMT
Hi folks,
  I am writing a deployment script and for it I am using telnet task to do
some task remotely. Below is my task:

------------------------------------------------------------------------
<target name="process-rel" description="Process the release">
   
	<telnet server="${deploy.server}"
	             userid="${deploy.infogain.userid}"
	             password="${deploy.infogain.password}"
	             timeout="${deploy.telnet_timeout}"
	             >
		     
		     <read>${deploy.prompt}</read>
		     <write>su - ${deploy.tibco.userid}</write>
		     <read>Password:</read>
	             <write>${deploy.tibco.password}</write>
		     <read>${deploy.prompt}</read>
		     <write>cd "${deploy.tibco.rel_dir}"</write>
		     <read>${deploy.prompt}</read>
		     <write>mkdir "${release.version}"</write>
		     <read>${deploy.prompt}</read>
		     <write>cd
"${deploy.tibco.rel_dir}/${release.version}"</write>
	             <read>${deploy.prompt}</read>
	             <write>cp
"${deploy.infogain.rel_dir}/${release.version}/${release.version}.tar"
"${deploy.tibco.rel_dir}/${release.version}"</write>
	             <read>${deploy.prompt}</read>
	             <write>tar xf ${release.version}.tar</write>
	             <read>${deploy.prompt}</read>
	             <write>rm -rf META-INF</write>
	             <read>${deploy.prompt}</read>
	             <write>find . \( -name 'start*' -o -name 'stop*' -o
-name '*dat' -o -name '*cfg' -o -name '*xml' \) -exec dos2unix {} {}
\;</write>
	             <read>${deploy.prompt}</read>
	             <write>find . \( -name 'start*' -o -name 'stop*' -o
-name updejb \) -exec chmod 744 {} \;</write>
	             <read>${deploy.prompt}</read>
         </telnet>
   
   </target>


----------------------------------------------------------------------

everything works fine but when it reaches the second last <write> task which
tries to find some file and runs dos2unix command on it, it gives the
following error.

----
file:c:/deploy.xml:110: Response timed-out waiting for [CRMDV3]
----
[CRMDV3] is the command prompt which works fine at many other places. To my
surprise this target gets executed successfully few times but most time it
fails with above mentioed error.

 Any help/suggestion will be appriciated. 

Regards,
Akhil Nagpal

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message