title: How to use expect script in local machine
body: <p>I understand we have to spawn a process to interact with it using expect and send.</p>
  
  <p>I had been spawing ssh and running several commands in the remote machine using send, expect, send, expect.</p>
  
  <p>Now i am not pretty sure now.how i can run the similar command using expect in local machine.</p>
  
  <p>Could be please help me to understand this concern </p>