You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Christopher Styles <st...@gmail.com> on 2008/01/31 16:38:34 UTC

telnet task that stops websphere server remotely....

Hi,

I wrote a target that uses telnet to stop my websphere server remotely, and
the target kicks off with no problem, but it doesn't seem to be doing
anything.... It verifies my username, password, etc, then it just sits
there.... Am I doing something wrong...??? Please help....

<target name="stop-web-server"
           description="Stop the WebSphere Application Server">
      <telnet server="${remoteHostName}" userid="${ws.userid}" password="${
ws.password}">
         <read>/local/sys/was-01/profiles$</read>
         <write>/local/sys/was-01/profiles/EnterpriseApp01/bin/stopServer.sh
${servername} -user ${username} -password ${password}</write>
         <read>/local/sys/was-01/profiles$</read>
       </telnet>
</target>

Thanks
Chris