title: expect language, how to keep the spawned program running while the expect script is closed
body: <pre><code>spawn ssh -fnqX username@192.168.1.100 google-chrome 
  expect -re &quot;password&quot;  
  send &quot;passwd\r&quot;
  interact (?)
  </code></pre>
  <p>how to keep running the chrome while the whole script is close. so I can do another thing in the same shell?
  thank you very much.</p>
  new added.
  <pre><code>spawn ssh -fnqX $log_name@192.168.1.100 firefox  
  expect -re &quot;password&quot;  
  send &quot;$passwd_v100\r&quot;
  expect -re &quot;failed to create drawable| ~&quot;
  send eof\r
  </code></pre>
  <p>actually, I wrote the above code later, and it runs correctly. well, I do donot know how the  code <code>send eof\r</code> makes the script run well. I think it strange. BTW, the string &quot;failed to create drawable&quot; is invoked by the firefox.</p>