title: neo4j-shell example of running a Cypher script
body: <p>I need to run a Cypher query against a Neo4J database, from a command line (for batch scheduling purposes). </p>
  
  <p>When I run this:</p>
  
  <pre><code>./neo4j-shell -file /usr/share/neo4j/scripts/query.cypher -path /usr/share/neo4j/neo4j-community-3.1.1/data/databases/graph.db
  </code></pre>
  
  <p>I get this error:</p>
  
  <pre><code>ERROR (-v for expanded information):
          Error starting org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory, /usr/share/neo4j/neo4j-community-3.1.1/data/databases/graph.db
  </code></pre>
  
  <p>There is a running Neo4J instance on that database (localhost:7474). I need the script to perform queries against it.</p>
  
  <p>NOTE: this is a split of the <a href="https://stackoverflow.com/questions/41965987/importing-data-into-neo4j-from-csv/41969646#41969646">original question</a>, for the sake of tidiness.</p>