<?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 - setting a variable - Comments</title>
 <link>http://community.activestate.com/forum-topic/setting-variable</link>
 <description>Comments for &quot;setting a variable&quot;</description>
 <language>en</language>
<item>
 <title>setting a variable</title>
 <link>http://community.activestate.com/forum-topic/setting-variable#comment-4114</link>
 <description>&lt;p&gt;The send does not return the value, you have to &#039;expect&#039; the result instead.&lt;/p&gt;
</description>
 <pubDate>Sat, 09 Feb 2008 01:46:32 +0000</pubDate>
 <dc:creator>jeffh</dc:creator>
 <guid isPermaLink="false">comment 4114 at http://community.activestate.com</guid>
</item>
<item>
 <title>setting a variable</title>
 <link>http://community.activestate.com/forum-topic/setting-variable</link>
 <description>&lt;p&gt;I am telneting from my pc to an HPUX box, I am then attempting&lt;br /&gt;
to set a variable with the results of  grep.&lt;br /&gt;
Here is the code I&#039;m trying:&lt;br /&gt;
set SS [send &quot;grep &#039;ROCK&#039; /tmp/$PF\n\r&quot;]&lt;br /&gt;
put &quot;$SS&quot;&lt;/p&gt;
&lt;p&gt;I can tell from the history log on the HPUX box that the grep command is&lt;br /&gt;
working but the variable SS is not being set?  Where Am I going wrong?&lt;br /&gt;
What do I need to do to fix the problem?&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/setting-variable#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>Thu, 07 Feb 2008 20:20:33 +0000</pubDate>
 <dc:creator>dave_mairs</dc:creator>
 <guid isPermaLink="false">1901 at http://community.activestate.com</guid>
</item>
</channel>
</rss>
