title: Spawn command not found
body: <p>I have an error trying to run a .sh file</p>
  
  <pre>
  line 2: spawn: command not found
  ": no such file or directory
  bash.sh: line 3: expect: command not found
  bash.sh: line 4: send: command not found
  </pre>
  
  <pre><code>#!/usr/bin/expect -f
  spawn sftp -o IdentityFile=MyFile.ppk 500200243@XXX.XXX.XXX.XXX
  expect "XXX.XXX.XXX.XXX.gatewayEnter passphrase for key 'MyFile.ppk.ppk':"
  send "myPassword"
  </code></pre>
  
  <p>Any idea why it happens?</p>