title: need input on a NCFTP shell script
body: <p>I am trying to create a shell script which uploads a local directory tree to a remote server.
  This part of the code works fine. However when i add the chmod command i get the ncftp> shell.</p>
  
  <p>Can someone help me out? This is the code i have:</p>
  
  <pre><code>    #!/bin/bash
  echo "Afbeeldingen uploaden..."
  ncftpput -Rvm -u "username" -p "password" domain.com /domains/domain.com/public_html/wp-content/gallery /Shared\ Items/Beeld/LowRes/*
  ncftp -u "username" -p "password" domain.com
  ncftp chmod -R 777 /domains/domain.com/public_html/wp-content/gallery/*
  quit
  echo "Klaar!"
  exit
  </code></pre>