title: Running ELKI automatically
body: <p>I have 25 files and I want to process them with same settings but for the following script I receive two errors:</p>
  
  <pre>
  
      **Stopping execution because of configuration errors.
      optics.sh: line 9: -algorithm: command not found
      optics.sh: line 14: -optics.minpts: command not found**
  
  </pre>
  
  <pre>
  
      #!/bin/bash  
      for file in ~/ELKI/locationData/csv/*.csv; do
        name=${file##*/}      
        java -jar ~/ELKI/elki.jar KDDCLIApplication \
          -dbc.in "$file" \
          -db.index tree.spatial.rstarvariants.rstar.RStarTreeFactory \
          -index.pagefile MemoryPageFileFactory -pagefile.pagesize 512 \
          -spatial.bulkstrategy SortTileRecursiveBulkSplit \  
          -algorithm clustering.optics.OPTICSXi \
          -opticsxi.xi 0.05 \
          -algorithm.distancefunction geo.LatLngDistanceFunction \
          -geo.model SphericalHaversineEarthModel \
          -optics.epsilon 100.0 \ 
          -optics.minpts 200 \
          -resulthandler ResultWriter -out.gzip \
          -out ~/ELKI/locationData/output/${name%.*} 
      done
  
  </pre>
  
  <p>I don't have much experience with bash, It might be the case that there is an error in my bash script.</p>