<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://community.activestate.com" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>ActiveState Community Site - Tcl Expect - Comments</title>
 <link>http://community.activestate.com/forum-topic/tcl-expect</link>
 <description>Comments for &quot;Tcl Expect&quot;</description>
 <language>en</language>
<item>
 <title>Tcl Expect</title>
 <link>http://community.activestate.com/forum-topic/tcl-expect</link>
 <description>&lt;p&gt;I&#039;m confused with the following syntax, I believe it should&lt;br /&gt;
stay in the loop expecting &quot;anyway&quot; and &quot;first&quot; not in any paticular&lt;br /&gt;
order and not breking out until it finds &quot;$prompt&quot;.  It is acting like&lt;br /&gt;
3 individual expect commands in the cronological order that there listed in.&lt;br /&gt;
Can somebody HELP??? I need this fixed soon:&lt;/p&gt;
&lt;p&gt;for {} 1 {} {&lt;br /&gt;
expect -i $id timeout {FAIL} *anyway*&lt;br /&gt;
send &quot;yes\r\n&quot;&lt;br /&gt;
send_user &quot;\n$expect_out(buffer),$expect_out(1,string)\n&quot;&lt;br /&gt;
sleep 1&lt;br /&gt;
expect -i $id timeout {FAIL} *first*&lt;br /&gt;
send &quot;yes\r\n&quot;&lt;br /&gt;
send_user &quot;\n$expect_out(buffer),$expect_out(1,string)\n&quot;&lt;br /&gt;
sleep 1&lt;br /&gt;
expect -i $id timeout {FAIL} -re $prompt&lt;br /&gt;
{break}&lt;br /&gt;
send_user &quot;\n$expect_out(buffer),$expect_out(1,string)\n&quot;&lt;br /&gt;
            }&lt;/p&gt;
</description>
 <comments>http://community.activestate.com/forum-topic/tcl-expect#comments</comments>
 <category domain="http://community.activestate.com/forums/tdk-support-0">TDK support</category>
 <category domain="http://community.activestate.com/os/windows-xp-pro">Windows XP Pro</category>
 <pubDate>Wed, 27 Feb 2008 06:29:46 -0800</pubDate>
 <dc:creator>dave_mairs</dc:creator>
 <guid isPermaLink="false">1976 at http://community.activestate.com</guid>
</item>
</channel>
</rss>
