<?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 - What is the syntax for this command - Comments</title>
 <link>http://community.activestate.com/forum-topic/what-syntax-command</link>
 <description>Comments for &quot;What is the syntax for this command&quot;</description>
 <language>en</language>
<item>
 <title>After telneting (using</title>
 <link>http://community.activestate.com/forum-topic/what-syntax-command#comment-3882</link>
 <description>&lt;p&gt;After telneting (using Windows/Expect) to get to my UUT (UX box) I needed to be able to do the command:&lt;/p&gt;
&lt;p&gt;set V [exec grep -E &quot;^EVEREST&quot; Aresults] &quot;Which works with UNIX/Expect&quot;&lt;/p&gt;
&lt;p&gt;what I have found through help from people such as yourself that what I needed to do is:&lt;/p&gt;
&lt;p&gt;expect {&lt;br /&gt;
        -re $prompt {&lt;br /&gt;
                   set A [send &quot;grep &#039;HW ADDRESS&#039;  /tmp/$PF\r\n&quot;]&lt;br /&gt;
                   expect -re &quot;\n(.*)\n$prompt&quot; {&lt;br /&gt;
                   send_user &quot;\n$expect_out(buffer),$expect_out(1,string)\n&quot;&lt;br /&gt;
                                                  }&lt;br /&gt;
                   }&lt;br /&gt;
        }&lt;/p&gt;
</description>
 <pubDate>Mon, 14 Jan 2008 11:26:44 -0800</pubDate>
 <dc:creator>dave_mairs</dc:creator>
 <guid isPermaLink="false">comment 3882 at http://community.activestate.com</guid>
</item>
<item>
 <title>What is the syntax for this command</title>
 <link>http://community.activestate.com/forum-topic/what-syntax-command#comment-3880</link>
 <description>&lt;p&gt;The question isn&#039;t clear.  What does telnet have to do with the Tcl command mentioned?  &#039;grep&#039; the command isn&#039;t standard on Windows, so if you want that to work, you need to get an external grep executable, or rewrite to do the grep in pure Tcl.&lt;/p&gt;
</description>
 <pubDate>Mon, 14 Jan 2008 10:34:20 -0800</pubDate>
 <dc:creator>jeffh</dc:creator>
 <guid isPermaLink="false">comment 3880 at http://community.activestate.com</guid>
</item>
<item>
 <title>What is the syntax for this command</title>
 <link>http://community.activestate.com/forum-topic/what-syntax-command</link>
 <description>&lt;p&gt;I am telneting from Windows into a HPUX box,&lt;br /&gt;
In UX this command for setting the variable V&lt;br /&gt;
works fine.  What is the correct syntax to achieve the&lt;br /&gt;
same results within Activestate?  I&#039;ve tried everything I can&lt;br /&gt;
think of.&lt;/p&gt;
&lt;p&gt;set V [exec grep -E &quot;^EVEREST&quot; Aresults]&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Dave Mairs&lt;/p&gt;
</description>
 <comments>http://community.activestate.com/forum-topic/what-syntax-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>Mon, 14 Jan 2008 03:58:45 -0800</pubDate>
 <dc:creator>dave_mairs</dc:creator>
 <guid isPermaLink="false">1816 at http://community.activestate.com</guid>
</item>
</channel>
</rss>
