[prev in list] [next in list] [prev in thread] [next in thread] 

List:       expect
Subject:    [Expect] Urgent: Timed oud getting standard prompt using Expect and
From:       "Yaron Peryanty" <yaronp () Cyber-Ark ! com>
Date:       2008-03-09 10:16:02
Message-ID: FCFB4726EE8B1349BC1FD4D89C0B272C52ADFB () ca-il-prod2 ! il ! cyber-ark ! com
[Download RAW message or body]

--===============0393367279==
Content-class: urn:content-classes:message
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_001_01C881CE.8953630A"

This is a multi-part message in MIME format.


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

 

 

 


[Attachment #3 (text/html)]

<html xmlns:o="urn:schemas-microsoft-com:office:office" \
xmlns:w="urn:schemas-microsoft-com:office:word" \
xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;}
span.EmailStyle17
	{mso-style-type:personal-compose;
	font-family:Arial;
	color:windowtext;}
@page Section1
	{size:612.0pt 792.0pt;
	margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
	{page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Hi,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>My script uses Expect 5.8.7 with TCL and plink.exe (version
0.59) to connect to Solaris machine via SSH protocol.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>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&#8217;t) \
receive time-out when it wait for standard prompt.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I did some tests and from about 10 tests 4 fail with time
out waiting for standard prompt and all the rest successfully \
run.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>On the other hand running plink.exe manually on the same
machine with the same information (user, password) run \
successfully.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I suspect the Tectia server as the cause for the problem
(The Tectia server is installed on the Solaris machine).<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>BTW &#8211; 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.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><b><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial;font-weight:bold'>Maybe someone encounter time-out problems
with Expect, plink.exe and Tectia Server?<o:p></o:p></span></font></b></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Thanks for your help,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Yaron<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

</div>

</body>

</html>



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

--===============0393367279==--

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic