Re: expect/telnet

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Mar 25, 2005 at 05:47:31PM -0600, rado wrote:
> > On Fri, Mar 25, 2005 at 02:53:44PM -0600, rado wrote:
> > > This Project: I have to reset my modem thru a script
> > > # I can telnet into the modem
> > > it asks me for my password
> > > then I gotta hit "r" to reset
> > > then I gotta hit "y" as a confirmation
> > > then it's done and I am back at the shell prompt
> > > 
> I really think my real problem is what I'm trying to expect.
> telnet to the zoom ok to this screen:
.........snip

> LOGON PASSWORD> *********************************
> go to type password and it like overwrites itself...I have never been
> able to do it the first time(password kinda overwrites itself in a wierd
> way)
> discovered that if I just hit return first time it asks, I can get my
> password in but still like it's overwriting itself in that wierd way.

> 
> this is where the hangup is at.
run the script in conservative mode and add an exit command.
> 
> using a script.exp that autoexpect produces just hangs right there no
> matter what I try to do w/the timeout thang.
> just dunno...wish I could find a way to do it w/out expect really.
> jr

There are also chat scripts the old uucp programs used to use. Look at
the "chat" command.

-- 
http://kinz.org
http://www.fedoranews.org
Jeff Kinz, Emergent Research, Hudson, MA.


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux