ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> expect
expect
Re: [Expect] Expect Digest, Vol 44, Issue 2
by Allan Silverstein other posts by this author
Mar 9 2008 12:38PM messages near this date
view in the new Beta List Site
[Expect] troubles with telnet within a telnet ... | [Expect] Urgent: Timed oud getting standard prompt using Expect and SSH
I've occasionally run into rare intermittent problems like this and using
expect -s had solved my problem.  Read up on the Send Slow feature in Don
Libes' Expect book for more details.

Al Silverstein

-----Original Message-----
From: expect-bounces@[...].com
[mailto:expect-bounces@[...].com] On Behalf Of
expect-request@[...].com
Sent: Sunday, March 09, 2008 3:00 PM
To: expect@[...].com
Subject: Expect Digest, Vol 44, Issue 2

Send Expect mailing list submissions to
	expect@[...].com

To subscribe or unsubscribe via the World Wide Web, visit
	http://listserv.ActiveState.com/mailman/listinfo/expect
or, via email, send a message with subject or body 'help' to
	expect-request@[...].com

You can reach the person managing the list at
	expect-owner@[...].com

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Expect digest..."


Today's Topics:

   1. Urgent: Timed oud getting standard prompt using Expect and
      SSH (Yaron Peryanty)


----------------------------------------------------------------------

Message: 1
Date: Sun, 9 Mar 2008 12:16:02 +0200
From: "Yaron Peryanty" <yaronp@[...].com> 
Subject: [Expect] Urgent: Timed oud getting standard prompt using
	Expect and	SSH
To: <expect@[...].com> 
Message-ID:
	
<FCFB4726EE8B1349BC1FD4D89C0B272C52ADFB@[...].com> 
Content-Type: text/plain; charset="us-ascii"

Hi,

 

My script uses Expect 5.8.7 with TCL and plink.exe (version 0.59) to
connect to Solaris machine via SSH protocol.

On some cases I am having troubles with the Script when I am using SSH.
Expect sometimes (on some cases it works and on some it doesn't) receive
time-out when it wait for standard prompt.

I did some tests and from about 10 tests 4 fail with time out waiting
for standard prompt and all the rest successfully run.

On the other hand running plink.exe manually on the same machine with
the same information (user, password) run successfully.

I suspect the Tectia server as the cause for the problem (The Tectia
server is installed on the Solaris machine).

 

BTW - I enabled Expect internal diagnostics and did lots of tests to
eliminate prompts problems or bugs in my script. In addition the same
scripts works perfectly fine on AIX, Linux or Telnet protocol.

 

 

Maybe someone encounter time-out problems with Expect, plink.exe and
Tectia Server?

 

 

Thanks for your help,

Yaron

 

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://listserv.ActiveState.com/mailman/private/expect/attachments/20080309/
5a38556c/attachment.html 

------------------------------

_______________________________________________
Expect mailing list
Expect@[...].com
http://listserv.ActiveState.com/mailman/listinfo/expect


End of Expect Digest, Vol 44, Issue 2
*************************************

_______________________________________________
Expect mailing list
Expect@[...].com
http://listserv.ActiveState.com/mailman/listinfo/expect

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved