![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.tcl archiveexpect: how to clear expect_out(1,string)
From: <andyhaupt@netscape.net>
Date: Mon Mar 06 2006 - 18:43:30 CET
Hello,
I'm using the following pattern in an expect script
expect -re "(pat1)?(pat2)"
ie. pat1 can match 0 or 1 time, pat2 needs to match always.
the output is stored in expect_out(1,string) and expect_out(2,string)
Now if I base a decision on the value of expect_out(1,string) I might
I was thinking about a hierarchical approach like this
is this really the way to do it?
rgds
|