Code Comments
Programming Forum and web based access to our favorite programming groups.I want to perform a very simple test. I want to automate telnet. I can write Expect to login w/usr/pwd. But I want Expect to give me the ability to interact. The version @ wiki. Doesn't support interactive. So once I login, I want to be able to pass commands to telnet. I want to read the stdIO from expect send to telnet then get the results from telnet and show it. That's it. When I login Expect just ends and I cannot interact. Can someone please help me? Where can I find a simple example?
Post Follow-up to this messageOn Fri, 25 Mar 2005 11:54:40 -0500, Steve wrote: > I want to perform a very simple test. > > I want to automate telnet. I can write Expect to login w/usr/pwd. But I > want Expect to give me the ability to interact. The version @ wiki. > Doesn't support interactive. I think you're looking for [interact]. Put 'interact' at the appropriate point in your script (likely the end), and see if it does what you want. Ethan
Post Follow-up to this messageIn article <6PmdnQRCYMDJ39nfRVn-rQ@adelphia.com>, Steve <scp2000@hotmail.com> wrote: > >I want to perform a very simple test. > >I want to automate telnet. I can write Expect to login w/usr/pwd. But I >want Expect to give me the ability to interact. The version @ wiki. >Doesn't support interactive. > >So once I login, I want to be able to pass commands to telnet. I want to >read the stdIO from expect send to telnet then get the results from telnet >and show it. > >That's it. > >When I login Expect just ends and I cannot interact. > >Can someone please help me? Where can I find a simple example? > > > > > > It's very, very likely that what you want is possible. It probably will take more explanation to understand what that is. What is the operating system of the host on which you're running Expect and telnet? Is your goal complete or partial automation? The latter is more difficult ... What version of Expect have you installed? What is the result of "expect -v" at the command prompt?
Post Follow-up to this messageThe version is wiki for Windows XP OS. I do not have interact available in this version. No version of wiki has it. The only option is to purchase a version to use interact. What I basically want to do is ultimately perfrom a login and perform a series of processes and then turn over the control to the user. This way I don't need to do a lot of repitious typing. I can turn on the app and wait for everything to be ready. "Cameron Laird" <claird@lairds.us> wrote in message news:tfvdh2-o8k.ln1@lairds.us... > In article <6PmdnQRCYMDJ39nfRVn-rQ@adelphia.com>, > Steve <scp2000@hotmail.com> wrote: telnet > > It's very, very likely that what you want is possible. It probably > will take more explanation to understand what that is. > > What is the operating system of the host on which you're running > Expect and telnet? Is your goal complete or partial automation? > The latter is more difficult ... What version of Expect have you > installed? What is the result of "expect -v" at the command prompt?
Post Follow-up to this messagePowered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.