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
[Expect] Controlling the buffer send to Expect
by Yaron Peryanty other posts by this author
Mar 5 2008 12:01AM messages near this date
view in the new Beta List Site
[Expect] Urgent: Timed oud getting standard prompt using Expect and SSH | [Expect] Clear passwords in exp_internal
Hi,

 

I am using TCL and Expect 5.8.3.

One of my customers is using Linux and AIX and a big banner at the
logon.

When he run my script on AIX I see in the expect log that it receive
large chunks of data from the AIX.

When he run my script on Linux I see in the expect log that Linux send 1
characters after the other and it takes long time for the entire banner
to be received.

 

This is an example from the Expect internal log:

expect: does "*" (spawn_id exp4) match regular expression " .*\$ ?$|.*\#
?$|.*>  ?$|.*\% ?$|.*\] ?$ "? no

expect: does "**" (spawn_id exp4) match regular expression " .*\$
?$|.*\# ?$|.*>  ?$|.*\% ?$|.*\] ?$ "? no

expect: does "***" (spawn_id exp4) match regular expression " .*\$
?$|.*\# ?$|.*>  ?$|.*\% ?$|.*\] ?$ "? no

expect: does "****" (spawn_id exp4) match regular expression " .*\$
?$|.*\# ?$|.*>  ?$|.*\% ?$|.*\] ?$ "? no

expect: does "*****" (spawn_id exp4) match regular expression " .*\$
?$|.*\# ?$|.*>  ?$|.*\% ?$|.*\] ?$ "? no

expect: does "******" (spawn_id exp4) match regular expression " .*\$
?$|.*\# ?$|.*>  ?$|.*\% ?$|.*\] ?$ "? no

expect: does "****** " (spawn_id exp4) match regular expression " .*\$
?$|.*\# ?$|.*>  ?$|.*\% ?$|.*\] ?$ "? no

expect: does "******  " (spawn_id exp4) match regular expression " .*\$
?$|.*\# ?$|.*>  ?$|.*\% ?$|.*\] ?$ "? no

expect: does "******   " (spawn_id exp4) match regular expression " .*\$
?$|.*\# ?$|.*>  ?$|.*\% ?$|.*\] ?$ "? no

expect: does "******   *" (spawn_id exp4) match regular expression "
.*\$ ?$|.*\# ?$|.*>  ?$|.*\% ?$|.*\] ?$ "? no

expect: does "******   **" (spawn_id exp4) match regular expression "
.*\$ ?$|.*\# ?$|.*>  ?$|.*\% ?$|.*\] ?$ "? no

 

 

 

Do you know if I can enlarge the size of the chunks send by the remote
machine?

 

 

 

 

 

 

Thanks,

Yaron

 

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