I'm trying to execute a series of Cypher queries using Cypher shell according to here. I have created a file called "cypher.ex1" and placed it into import and bin folder. Here is its content:
MATCH (n) RETURN n;
MATCH (batman:Person {name: 'Bruce Wayne'}) RETURN batman;
I'm trying to execute it using:
$neo4j-home> cat cypher.ex1 | bin/cypher-shell -u neo4j -p 123456 --format plain
but when I run this, nothing happens and after waiting for a long time with no output, I need to press "CTRL + C" to terminate the command. Here is an screenshot of the problem:
In fact, cypher-shell works fine for one line commands, but not for scripts. What's wrong?