title: how to user expect and send with a request and sleep
body: <p>When the password appeare
  I want to use expect to autoinput the result of a request after 5s</p>
  
  <p>macOS shell expect</p>
  
  <pre><code>expect &lt;&lt; !
  set timeout -1
  spawn bundle exec fastlane fastlane-credentials add --username sakura
  expect "*Password*"
  sleep 5
  send `curl http://localhost/a.txt`
  
  interact
  !
  </code></pre>
  
  <p>the sleep can't effect
  the <code>curl http://localhost/a.txt</code> used before the Password，I want to after</p>