title: How to assign the return value of command to other variable using Expect
body: <p>I have the following scenario which is working fine on command line</p>
  
  <pre><code>value=`cat /root/abc`
  echo $value
  </code></pre>
  
  <p>which is printing the content of the file abc</p>
  
  <p>now same I want to perform using Expect</p>
  
  <p>I did as follow</p>
  
  <pre><code>send "value=`cat /root/abc`\r"
  </code></pre>
  
  <p>now I want to capture the value in some variable as follow</p>
  
  <pre><code>set A_Value = $value
  </code></pre>
  
  <p>but getting error  <code>can't read "value": no such variable</code></p>
  
  <p>I am very new to <code>expect</code> and trying it first time, So could anyone please let me know how to achieve the same.</p>
  
  <p>Thanks</p>