title: expect script has erroneous characters
body: <p>My script ssh's into an HP switch and makes an interface change. I cannot figure out what is causing the erroneous characters in output (see bold).</p>
  
  <p>My script:</p>
  
  <pre><code>#!/usr/bin/expect
  spawn ssh -o StrictHostKeyChecking=no user@switch
  expect {
          "password:" { send "passwd\r" ; exp_continue }
          "Press any key to continue" { send " \r" ; exp_continue }
          "240#" { send "conf t\r" }
  }
  expect {
          "(config)#" { send "int 8\r" }
  }
  expect {
          "(eth-8)#" { send "enable\r" }
  }
  expect {
          "(eth-8)#" { send "wr mem\r" }
  }
  expect {
          "(eth-8)#" { send "end\r" }
  }
  expect {
          "#" { send "logout\r" }
  }
  expect eof
  </code></pre>
  
  <p>See erroneous output below:
  <strong>;209R</strong> &amp; <strong>;209R^C</strong></p>
  
  <pre><code>user@user-site:/config/scripts$ ./test_disable.exp
  spawn ssh -o StrictHostKeyChecking=no user@switch
  ========= WARNING: Unauthorized access to this system is forbidden 
  and will be prosecuted by law. By accessing this system, you agree 
  that your actions may be monitored if unauthorized usage is suspected.
  ===
  
  user@switch's password:
  Press any key to continue
  Your previous successful login (as user) was on 2016-11-18 14:30:54
  from &lt;ip removed&gt;
  swtch-16-57-240#
  swtch-16-57-240# conf t
  swtch-16-57-240(config)# int 8;209R
  swtch-16-57-240(eth-8)# enable
  swtch-16-57-240(eth-8)# wr mem
  swtch-16-57-240(eth-8)# end
  swtch-16-57-240# logout
  Do you want to log out [y/n]? y
  Connection to switch closed by remote host.
  Connection to switch closed.
  user@user-site:/config/scripts$ ;209R^C
  user@user-site:/config/scripts$
  </code></pre>