[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
|