title: How to run MAGMI from a shell script
body: <p>I try to run MAGMI from a shellscript, but I get allways the same message:</p>
  
  <p>/bin/sh: /is/htdocs/XXXXXXXXX/magento/magmi/cli/XXXXXXX.sh: /bin/bash^M: bad interpreter: No such file or directory</p>
  
  <p>My script:</p>
  
  <pre><code> #!/bin/bash
  
  FILES=/is/htdocs/XXXXXXXXX/magento/var/import/XXXXXXXXX.csv
  for f in $FILES
  do
       echo "Running Magmi update with file: $f"
       php magmi.cli.php -profile=XXXX -mode=update -CSV:filename="${f}"
       wait
  done
  </code></pre>
  
  <p>The script is in the same directory as magmi.cli.php</p>
  
  <p>Thanks for hints and solutions !</p>