ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shawn McManus" <shawn_mcma...@EM3corp.com>
Subject RE: Telnet Output
Date Tue, 22 Jan 2002 16:34:42 GMT
David,

I use the telnet task to do the same.  Some things to include are the
initial
<read/> and subsequent reads.

Here's an example of a target that I use:

  <target name="telnet-stopweblogic">
    <telnet server="myappsvr.mydomain.com"
            userid=""
            password=""
            initialCR="yes">
      <read/>
      <write>cd /u01/app/weblogic/myenv/5.1/; echo +++done+++</write>
      <read>+++done+++</read>
      <write>. weblogicenv.env; echo +++done+++</write>
      <read>+++done+++</read>
      <write>. stopWebLogic.sh; echo +++done+++</write>
      <read>+++done+++</read>
      <write>cd /u01/app/weblogic/myenv/5.1/mywlcluster/mybuild/myenv;
echo +++done+++</write>
      <read>+++done+++</read>
      <write>rm -r classdirs; echo +++done+++</write>
      <read>+++done+++</read>
      <write>gunzip myapp.tar.gz; echo +++done+++</write>
      <read>+++done+++</read>
      <write>tar xvf myapp.tar; echo +++done+++</write>
      <read>+++done+++</read>
      <write>chmod -R 755 execdirs; echo +++done+++</write>
      <read>+++done+++</read>
      <write>rm myapp.tar; echo +++done+++</write>
      <read>+++done+++</read>
    </telnet>
  </target>

Hope this helps,
Shawn


-----Original Message-----
From: David_DeLano@oti.com [mailto:David_DeLano@oti.com]
Sent: Tuesday, January 22, 2002 10:26 AM
To: ant-user@jakarta.apache.org
Subject: Telnet Output


I am using Ant in a slightly unconventional manner.  I am using a build
script to submit a build (using make) on a remote system using telnet.
Everything is running fine, except that I get no output from commands
submitted via telnet until the command is finished.  Since the builds
take
a while, it would be good to have the output streamed back so that
progress
can be monitored.  Have I missed a setting that would fix this?


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


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


Mime
View raw message