Home > Archive > Tcl > April 2005 > Simple Program
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
|
|
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?
| |
| Ethan Blanton 2005-03-25, 3:59 pm |
| On 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
| |
| Cameron Laird 2005-03-25, 3:59 pm |
| In 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?
| |
|
| The 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[color=darkred]
>
> 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?
|
|
|
|
|