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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 22, 2002 10:26 AM
To: [EMAIL PROTECTED]
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:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to