title: spawn_id: spawn id exp6 not open
body: <p>I know that this issue is already mentioned here, but the solution does not work for me.</p>
  
  <p>I have this script (let's name it myscript.sh) that spawns a process on remote environment and that should interact with it.</p>
  
  <pre><code>#!/usr/bin/expect
  log_user 0
  set timeout 10
  spawn ssh -o PubkeyAuthentication=no [lindex $argv 0] -n [lindex $argv 1]
  expect "password:" {send "mypassword\r"}
  expect "Continue to run (y/n)" {send "n\r"}
  interact
  </code></pre>
  
  <p>When I call this script on local environment...</p>
  
  <pre><code>myscript.sh user@host "command1;./command2 parameter1 parameter2"
  </code></pre>
  
  <p>I get the above error at line 7 (interact)</p>
  
  <p>Any ideas??</p>