ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Haroldo Pereira Nascimento" <hnascime...@eversystems.com.br>
Subject Re: Example of task telnet
Date Mon, 10 Feb 2003 13:05:06 GMT
Martin

  I need see the result of de commands using tasl "telnet".  I Know how copy
the files to other systems using task "telnet", but I dont Know how get the
result of commands.

  I would like get it, for exemple:

"
1-SunOS 5.6
2-
3-login: xxxx
4-Password:
5-Last login: Mon Feb 10 08:16:38 from 172.16.200.163:0
6-Sun Microsystems Inc.   SunOS 5.6       Generic August 1997
7-
8-$ pwd
9-/export/home/smartmail
10-$
"
 (this code was generate using telnet.exe)

  ... But I dont see the lines 9 and 10 in my application.

   I used this xml:

     <target name="telnet_arq">
         <telnet server="${host.name}" timeout="20">
     <read>ogin:</read>
     <write>"${host.user}"</write>
     <read>assword:</read>
     <write>"${host.pass}"</write>
     <read>.</read>
     <write>pwd</write>
     <read>.</read>
         </telnet>
     </target>

  You could send me any example of build.xml and this response of the
commands.

  Thanks


Haroldo Pereira Nascimento hnascimento@eversystems.com.br Avenida Marginal
Pinheiros, 5200 05693-000 São Paulo - SP - Brazil Phone: +5511 3759-8426
Fax: +5511 3759-8005
----- Original Message -----
From: "Martin" <mgainty@hotmail.com>
To: "Ant Users List" <ant-user@jakarta.apache.org>
Cc: <hnascimento@eversystems.com.br>
Sent: Wednesday, August 14, 2002 5:02 PM
Subject: Re: Example of task telnet


> Harold-
> Did you test the basic connectivity with telnet
> Did you see of you have read rights for the directory which performs ls??
> -Martin
> ----- Original Message -----
> From: "Haroldo Pereira Nascimento" <hnascimento@eversystems.com.br>
> To: "Ant Users List" <ant-user@jakarta.apache.org>
> Sent: Friday, February 07, 2003 2:49 PM
> Subject: Example of task telnet
>
>
> > Anybody can I in my tests?
> > I needd see the result of command "ls" using task "telnet".
> >
> > I wait answer.
> >
> >
> > Haroldo Pereira Nascimento hnascimento@eversystems.com.br Avenida
Marginal
> > Pinheiros, 5200 05693-000 São Paulo - SP - Brazil Phone: +5511 3759-8426
> > Fax: +5511 3759-8005
> > ----- Original Message -----
> > From: "Haroldo Pereira Nascimento" <hnascimento@eversystems.com.br>
> > To: "Ant Users List" <ant-user@jakarta.apache.org>
> > Sent: Friday, February 07, 2003 1:14 PM
> > Subject: task telnet
> >
> >
> > > Hi
> > >
> > >   I am using this xml for connecting into the server. I need see the
> > result
> > > of command
> > > "ls". It didnt works.
> > >
> > >     <target name="telnet_arq">
> > >         <telnet server="${host.name}" timeout="20">
> > >     <read>ogin:</read>
> > >     <write>"${host.user}"</write>
> > >     <read>assword:</read>
> > >     <write>"${host.pass}"</write>
> > >     <read>/export/home/smartmail/har</read>
> > >     <write>ls</write>
> > >     <read>/export/home/smartmail/har</read>
> > >         </telnet>
> > >     </target>
> > >
> > > What is the error ?
> > >
> > >
> > > Haroldo Pereira Nascimento hnascimento@eversystems.com.br Avenida
> Marginal
> > > Pinheiros, 5200 05693-000 São Paulo - SP - Brazil Phone: +5511
3759-8426
> > > Fax: +5511 3759-8005
> > > ----- Original Message -----
> > > From: "Cox, Charlie" <ccox@cincom.com>
> > > To: "'Ant Users List'" <ant-user@jakarta.apache.org>
> > > Sent: Friday, February 07, 2003 1:03 PM
> > > Subject: RE: xslt task with foreach
> > >
> > >
> > > > yes, but I couldn't get it to translate my property instead of
passing
> > the
> > > > propertname in:
> > > >
> > > > <xslt in="html/${baseName}" out="xsl/${baseName}" style="myxsl.xsl"
> > > > processor="trax">
> > > >
> > > > this causes the filename to be passed as "$(baseName)" instead of
> > > resolving
> > > > the property.
> > > >
> > > > Can I use a property for 'in' and 'out'?
> > > >
> > > > thanks,
> > > > Charlie
> > > >
> > > > > -----Original Message-----
> > > > > From: Java Burre [mailto:javaburre@hotmail.com]
> > > > > Sent: Friday, February 07, 2003 9:52 AM
> > > > > To: ant-user@jakarta.apache.org
> > > > > Subject: Re: xslt task with foreach
> > > > >
> > > > >
> > > > > already tried with in and out attributes of xslt task ?
> > > > > Did not test it.
> > > > >
> > > > >
> > > > >
> > > > > >From: "Cox, Charlie" <ccox@cincom.com>
> > > > > >Reply-To: "Ant Users List" <ant-user@jakarta.apache.org>
> > > > > >To: "'ant-user@jakarta.apache.org'" <ant-user@jakarta.apache.org>
> > > > > >Subject: xslt task with foreach
> > > > > >Date: Fri, 7 Feb 2003 08:25:19 -0500
> > > > > >
> > > > > >I'm having trouble getting this task to work. What I need is
> > > > > to run an xslt
> > > > > >task for each file in the directory and I need the filename
> > > > > to be passed as
> > > > > >a parameter to the xslt.
> > > > > >
> > > > > >This is what I have so far and it works for one file, but
> > > > > when I have many
> > > > > >files, the xslt task processes all the files passing in the
> > > > > name of the
> > > > > >first file to each one, then it tries to complete the
> > > > > foreach by running
> > > > > >the
> > > > > >xslt task for the rest, which does nothing since it already
> > > > > did them all.
> > > > > >
> > > > > ><target name="all">
> > > > > > <foreach param="htmlFileName" target="convertXsl">
> > > > > > <fileset dir="html" includes="*.htm"/>
> > > > > > </foreach>
> > > > > ></target>
> > > > > >
> > > > > ><!-- process a given file. called by the 'all' target -->
> > > > > ><target name="convertXsl">
> > > > > > <!-- get the name of the document without the path -->
> > > > > > <basename file="${htmlFileName}" property="baseName"/>
> > > > > > <echo message="processing....${baseName}"/>
> > > > > > <!-- convert the style first -->
> > > > > > <xslt basedir="html" destdir="xsl" extension=".xsl"
> > > > > >style="myxsl.xsl" processor="trax" >
> > > > > > <param name="myFormName" expression="${baseName}"/>
> > > > > > <xmlcatalog>
> > > > > > <dtd publicId="-//W3C//DTD XHTML 1.0
> > > > > >Transitional//EN" location="xhtml.dtd"/>
> > > > > > </xmlcatalog>
> > > > > > </xslt>
> > > > > ></target>
> > > > > >
> > > > > >I tried adding includes="$(baseName)" for the xslt task,
> > > > > which caused it to
> > > > > >not process any files. Likewise for includes="$(htmlFileName)".
> > > > > >
> > > > > >how can I get the foreach to go through the list of files
> > > > > and the xslt to
> > > > > >process only the given file?
> > > > > >
> > > > > >thanks,
> > > > > >Charlie
> > > > > >
> > > > >
> >---------------------------------------------------------------------
> > > > > >To unsubscribe, e-mail: ant-user-unsubscribe@jakarta.apache.org
> > > > > >For additional commands, e-mail: ant-user-help@jakarta.apache.org
> > > > >
> > > > >
> > > > > _________________________________________________________________
> > > > >
> > > > >
> > > > >
> > > >
> > ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: ant-user-unsubscribe@jakarta.apache.org
> > > > > For additional commands, e-mail: ant-user-help@jakarta.apache.org
> > > > >
> > > >
> > >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: ant-user-unsubscribe@jakarta.apache.org
> > > > For additional commands, e-mail: ant-user-help@jakarta.apache.org
> > > >
> > > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: ant-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: ant-user-help@jakarta.apache.org
> > >
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: ant-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: ant-user-help@jakarta.apache.org
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ant-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: ant-user-help@jakarta.apache.org
>
>


Mime
View raw message