<?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 - Windows expect /Unix expect - Comments</title>
 <link>http://community.activestate.com/forum-topic/windows-expect-unix-expect</link>
 <description>Comments for &quot;Windows expect /Unix expect&quot;</description>
 <language>en</language>
<item>
 <title>online version updated</title>
 <link>http://community.activestate.com/forum-topic/windows-expect-unix-expect#comment-5260</link>
 <description>&lt;p&gt;&lt;a href=&quot;http://aspn.activestate.com/ASPN/docs/ActiveTcl/8.5/expect4win/ex_usage.html&quot; title=&quot;http://aspn.activestate.com/ASPN/docs/ActiveTcl/8.5/expect4win/ex_usage.html&quot;&gt;http://aspn.activestate.com/ASPN/docs/ActiveTcl/8.5/expect4win/ex_usage....&lt;/a&gt;&lt;/p&gt;
</description>
 <pubDate>Tue, 29 Apr 2008 21:00:58 +0100</pubDate>
 <dc:creator>grahams</dc:creator>
 <guid isPermaLink="false">comment 5260 at http://community.activestate.com</guid>
</item>
<item>
 <title>?</title>
 <link>http://community.activestate.com/forum-topic/windows-expect-unix-expect#comment-5016</link>
 <description>&lt;p&gt;?&lt;/p&gt;
</description>
 <pubDate>Sat, 12 Apr 2008 00:23:39 +0100</pubDate>
 <dc:creator>pmcd</dc:creator>
 <guid isPermaLink="false">comment 5016 at http://community.activestate.com</guid>
</item>
<item>
 <title>Windows expect /Unix Expect</title>
 <link>http://community.activestate.com/forum-topic/windows-expect-unix-expect#comment-3887</link>
 <description>&lt;p&gt;It is part of the documentation that comes with ActiveTcl on Windows.&lt;/p&gt;
</description>
 <pubDate>Mon, 14 Jan 2008 19:49:37 +0000</pubDate>
 <dc:creator>jeffh</dc:creator>
 <guid isPermaLink="false">comment 3887 at http://community.activestate.com</guid>
</item>
<item>
 <title>Windows expect /Unix Expect</title>
 <link>http://community.activestate.com/forum-topic/windows-expect-unix-expect#comment-3885</link>
 <description>&lt;p&gt;The hyerlink for doc above, is not working for me?  Could you send along the URL?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
</description>
 <pubDate>Mon, 14 Jan 2008 19:44:16 +0000</pubDate>
 <dc:creator>dave_mairs</dc:creator>
 <guid isPermaLink="false">comment 3885 at http://community.activestate.com</guid>
</item>
<item>
 <title>Windows expect /Unix expect</title>
 <link>http://community.activestate.com/forum-topic/windows-expect-unix-expect#comment-3879</link>
 <description>&lt;p&gt;Have you tried the same in Windows Expect?  It supports the timeout functionality.  The docs list the specific differences between the versions.&lt;/p&gt;
</description>
 <pubDate>Mon, 14 Jan 2008 18:32:43 +0000</pubDate>
 <dc:creator>jeffh</dc:creator>
 <guid isPermaLink="false">comment 3879 at http://community.activestate.com</guid>
</item>
<item>
 <title>Windows expect /Unix expect</title>
 <link>http://community.activestate.com/forum-topic/windows-expect-unix-expect</link>
 <description>&lt;p&gt;I am using ActiveState 8.4.16.0, I have found this code format that seems to work great:&lt;/p&gt;
&lt;p&gt;expect &quot;Login:*&quot;&lt;br /&gt;
send &quot;root\r&quot;&lt;br /&gt;
expect &quot;&amp;gt;*&quot;&lt;br /&gt;
send &quot;ksh\r&quot;&lt;br /&gt;
expect &quot;#*&quot;&lt;br /&gt;
send &quot;tar -xvf /dev/rmt/0m\r&quot;&lt;br /&gt;
expect &quot;#&quot;&lt;/p&gt;
&lt;p&gt;My question is, how do I set it up to fail out if one of the expect calls&lt;br /&gt;
doesn&#039;t happen? In UX it would be aomething like:&lt;/p&gt;
&lt;p&gt;proc T1 {} {&lt;br /&gt;
set EXITCODE [format &quot;NO root prompt\n&quot; ]&lt;br /&gt;
send_user $EXITCODE&lt;br /&gt;
exit -1&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;set timeout 5&lt;/p&gt;
&lt;p&gt;expect {#*} {send &quot;root\r&quot;} \&lt;br /&gt;
timeout {T1}&lt;/p&gt;
&lt;p&gt;If &quot;#&quot; wasn&#039;t found in 5 seconds, the program would fail and the log would report &quot;NO root prompt&quot;&lt;/p&gt;
</description>
 <comments>http://community.activestate.com/forum-topic/windows-expect-unix-expect#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>Mon, 14 Jan 2008 11:46:10 +0000</pubDate>
 <dc:creator>dave_mairs</dc:creator>
 <guid isPermaLink="false">1815 at http://community.activestate.com</guid>
</item>
</channel>
</rss>
