Re: cliente para scripts telnet

2002-11-18 Por tema Victor Calzado Mayo
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hola
On Sunday 17 November 2002 07:25, Rafael Gawenda wrote:
> * Josep Maria Estopà Rey <[EMAIL PROTECTED]> [2002-11-17 00:36 (CET)]
>
> > Quisiera automatizar dichas tareas y quisiera hacerlo escribiendo una
> > serie de scripts y planificarlo a las horas que corresponda.
> >
> > Mi problema es un cliente de telnet que permita ejecutar esos scripts.

Lo mejor es implementar algún sistema que dote de interactividad a las 
sesiones, cosas parecidas hemos hecho nosotros con:

a) expect  solución sencilla y recurrida si no tienes perl

debbie:~# apt-cache show expect
Package: expect
Priority: optional
Section: interpreters
Installed-Size: 456
Maintainer: Mike Markley <[EMAIL PROTECTED]>
Architecture: i386
Version: 5.32.2-4
Replaces: expect5.31 (<< 5.31.8-4), expect5.24 (<< 5.30.1-8)
Depends: libc6 (>= 2.2.3-7), tcl8.3 (>= 8.3.0)
Suggests: expectk
Conflicts: expect5.31 (<< 5.31.8-4), expect5.24 (<< 5.30.1-8)
Filename: pool/main/e/expect/expect_5.32.2-4_i386.deb
Size: 247880
MD5sum: ae956453606ec08dab675534687f0c9a
Description: A program that "talks" to other programs.
 Expect is a program that "talks" to other interactive programs
 according to a script.  Following the script, Expect knows what
 can be expected from a program and what the correct response
 should be.  An interpreted language provides branching and high-
 level control structures to direct the dialogue.  In addition,
 the user can take control and interact directly when desired,
 afterward returning control to the script.


b) perl 

debbie:~# apt-cache search "perl" | grep -i telnet
libnet-telnet-perl - Script telnetable connections
debbie:~# apt-cache show libnet-telnet-perl
Package: libnet-telnet-perl
Priority: optional
Section: interpreters
Installed-Size: 196
Maintainer: Michael Alan Dorman <[EMAIL PROTECTED]>
Architecture: all
Version: 3.02-1
Depends: perl5
Filename: pool/main/libn/libnet-telnet-perl/libnet-telnet-perl_3.02-1_all.deb
Size: 48958
MD5sum: 2b2e921ba969d5a2176a6c403a713bed
Description: Script telnetable connections
 Net::Telnet allows you to make client connections to a TCP port and
 do network I/O, especially to a port using the TELNET protocol.
 Simple I/O methods such as print, get, and getline are provided.
 More sophisticated interactive features are provided because
 connecting to a TELNET port ultimately means communicating with a
 program designed for human interaction.  These interactive features
 include the ability to specify a timeout and to wait for patterns to
 appear in the input stream, such as the prompt from a shell.



>
> No podriamos exactamente llamarlo cliente de telnet, pero
> deberias mirarte el netcat (nc)

Un saludo
Victor
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE92MwmEzqHF8R72ekRAiTGAJ0d0ktgKJ6Xf/plUZ9jGMVWlWJ8oQCcCFtH
z1F+dbMIVuGCzmiBw3/Sp2Q=
=76cE
-END PGP SIGNATURE-



Re: cliente para scripts telnet

2002-11-18 Por tema Javier Pepe
Para hacer lo que quere podes usar expect, con este programa podes enviarle 
datos a los programas como si estubieras escribiendo, o sea espera que el 
sistemas escriba algo por pantalla y despues envia lo que necesitas.

man expect

Suerte

El Sáb 16 Nov 2002 20:36, Josep Maria Estopà Rey escribió:
> Hola lista!
>
> Diariamente realizo una serie de tareas identicas sobre un router
> utilizando telnet.
>
> Quisiera automatizar dichas tareas y quisiera hacerlo escribiendo una
> serie de scripts y planificarlo a las horas que corresponda.
>
> Mi problema es un cliente de telnet que permita ejecutar esos scripts.
>
>
> Gracias por vuestra atención
>
> Josep Maria

-- 
--
   Javier A. Pepe
House of Fuller Argentina S.A.
 [EMAIL PROTECTED]





Re: cliente para scripts telnet

2002-11-17 Por tema Rafael Gawenda
* Josep Maria Estopà Rey <[EMAIL PROTECTED]> [2002-11-17 00:36 (CET)]

> Quisiera automatizar dichas tareas y quisiera hacerlo escribiendo una
> serie de scripts y planificarlo a las horas que corresponda.

> Mi problema es un cliente de telnet que permita ejecutar esos scripts.

No podriamos exactamente llamarlo cliente de telnet, pero
deberias mirarte el netcat (nc)

-- 
Rafael Gawenda
 2:346/[EMAIL PROTECTED]
Registered LiNUX user #93375


Por desgracia, la idea de colocar un dispositivo radiactivo al
lado de un ordenador suele poner nerviosa a la mayoría de la
gente (Kurt Seifried, Guía de Seguridad del Administrador LiNUX)


pgpcmq8AZgZMg.pgp
Description: PGP signature


cliente para scripts telnet

2002-11-16 Por tema Josep Maria Estopà Rey
Hola lista!

Diariamente realizo una serie de tareas identicas sobre un router
utilizando telnet.

Quisiera automatizar dichas tareas y quisiera hacerlo escribiendo una
serie de scripts y planificarlo a las horas que corresponda.

Mi problema es un cliente de telnet que permita ejecutar esos scripts.


Gracias por vuestra atención

Josep Maria