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] Does exp_match_max work on Win32, ActiveTcl 8.4.14
by Shishir Ramam other posts by this author
Feb 1 2008 3:54PM messages near this date
view in the new Beta List Site
Re: [Expect] Clear passwords in exp_internal | Re: [Expect] exp_spawn failed on Windows 2003 with DEP(DataExecutionPrevention)
Hi,
I am attempting to use expect and can't seem to set the expect buffer
to exceed the 2K default limit.


The script segment I am working with after a login -
Where send expect just wraps the sending and looking for a prompt.
The expect is on the regexp "ip route list\n(.*#)"
This keeps failing because the buffer seems to get clipped to the last
2K bytes.

However looking through the output, the call to exp_match_max returns 74000.

proc test {sid} {
  puts "\nRouting Table [exp_match_max]\n"
  exp_internal 1
  puts [send_expect $sid "ip route list"]
  puts ""
}


Not sure what I am missing.
Any help is appreciated.
-shishir
_______________________________________________
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