title: Hide output from expect
body: <p>Here's part of an expect script</p>
  
  <pre><code>#/usr/bin/expect 
  
  spawn -noecho kwalletcli -f Passwords -e keyofmypassword
  expect ".*"
  set passwd $expect_out(buffer)
  
  # do some thing
  # ...
  </code></pre>
  
  <p>It read password from kwalletcli, and store in variable <code>passwd</code>. So I can connect to the servers with this <code>passwd</code>.</p>
  
  <p>However, the output of kwalletcli is pass through expect and show on console. How can I hide that.</p>