<?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 - Failing Expect command - Comments</title>
 <link>http://community.activestate.com/forum-topic/failing-expect-command</link>
 <description>Comments for &quot;Failing Expect command&quot;</description>
 <language>en</language>
<item>
 <title>Failing Expect command</title>
 <link>http://community.activestate.com/forum-topic/failing-expect-command</link>
 <description>&lt;p&gt;I have no trouble with the following command:&lt;/p&gt;
&lt;p&gt;expect -i $id timeout {FAIL} anyway*&lt;br /&gt;
send &quot;yes\r&quot;&lt;br /&gt;
send_user &quot;\n$expect_out(buffer),$expect_out(1,string)\n&quot;&lt;/p&gt;
&lt;p&gt;Why doesn&#039;t (what&#039;s wrong with the following:)&lt;/p&gt;
&lt;p&gt;   while 1 {&lt;br /&gt;
  expect {&lt;br /&gt;
   -re anyway? {send &quot;yes\r&quot;}&lt;br /&gt;
   -re boot?   {send &quot;yes\r&quot;}&lt;br /&gt;
   -re $prompt {break}&lt;br /&gt;
          }&lt;br /&gt;
           }&lt;/p&gt;
&lt;p&gt;shouldn&#039;t both examples achieve the same results?&lt;br /&gt;
In the While example,&quot;anyway?&quot; is never found!&lt;br /&gt;
Feel free to repair examples.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;DAve&lt;/p&gt;
</description>
 <comments>http://community.activestate.com/forum-topic/failing-expect-command#comments</comments>
 <category domain="http://community.activestate.com/forums/activetcl-support-0">ActiveTcl support</category>
 <category domain="http://community.activestate.com/os/windows-xp-pro">Windows XP Pro</category>
 <pubDate>Fri, 15 Feb 2008 08:25:00 -0800</pubDate>
 <dc:creator>dave_mairs</dc:creator>
 <guid isPermaLink="false">1932 at http://community.activestate.com</guid>
</item>
</channel>
</rss>
