title: Invalid command error 'mkdir' while excuting #expect script
body: <p>The expect script returning invalid command while I trying to create a folder after login to server via ssh</p>
  
  <p>This is the below error I got</p>
  
  <pre><code>invalid command name "mkdir"
      while executing
  "mkdir new"
     (file "./connecttotravalour.exp" line 8)
  </code></pre>
  
  <p>And the code on my expect script is :</p>
  
  <pre><code>#!/bin/bash
  #connect to travalour host
  
  spawn ssh travalour@travalour.local
  expect "password"
  send "P@ssw0rd\r"
  interact
  mkdir new
  </code></pre>