Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Simple Program
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?







Report this thread to moderator Post Follow-up to this message
Old Post
Steve
03-25-05 08:59 PM


Re: Simple Program
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

Report this thread to moderator Post Follow-up to this message
Old Post
Ethan Blanton
03-25-05 08:59 PM


Re: Simple Program
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?

Report this thread to moderator Post Follow-up to this message
Old Post
Cameron Laird
03-25-05 08:59 PM


Re: Simple Program
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 
>
> 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?



Report this thread to moderator Post Follow-up to this message
Old Post
Steve
04-20-05 09:00 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Tcl archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 06:52 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.