Article View: es.comp.os.linux.programacion
Article #18333Re: telnet en un shell script
From: castor
Date: Sat, 11 Sep 1999 00:00
Date: Sat, 11 Sep 1999 00:00
20 lines
1265 bytes
1265 bytes
On Wed, 08 Sep 1999 15:10:34 GMT, Victor <victorgos@my-deja.com> wrote: >Como puedo hacer que un script haga un telnet, ponga el usuario, el password, >unos comandos y se desconecte. He probado de varias maneras pero no >funciona. Recuerdo que con ftp podias poner en el script: open ftp.ffff.fff >user:xxxx passw:xxxx o algo asi, pero no con telnet no hay manera. Utiliza expect: Expect is a tcl extension for automating interactive applications such as telnet, ftp, passwd, fsck, rlogin, tip, etc. Expect is also useful for testing the named applications. Expect makes it easy for a script to control another program and interact with it. En la Redhat el paquete viene, si tienes debian no creo que tengas mayores problemas. --- Saludotes Castor
Technical Details
Message-ID:
<slrn7tka07.nr.castor@localhost.localdomain>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<7r5u8t$ifc$1@nnrp1.deja.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f86c8,3d00d216f9426394 X-Google-Attributes: gidf86c8,public From: castor@castor.dhis.org (castor) Subject: Re: telnet en un shell script Date: 1999/09/11 Message-ID: <slrn7tka07.nr.castor@localhost.localdomain> X-Deja-AN: 524014178 References: <7r5u8t$ifc$1@nnrp1.deja.com> Organization: Joven castor User-Agent: slrn/0.9.5.4 (UNIX) Reply-To: castor+NOSPAM@castor.dhis.org Newsgroups: es.comp.os.linux.programacion