Running multiple script files from cypher shell

105 views
Skip to first unread message

Vishal Agarwal

unread,
Jun 4, 2018, 7:54:53 AM6/4/18
to Neo4j

In my setup, I have the many cypher files which will be used as part of creating the environment. I believe cypher-shell is the way to install the scripts but I could not find any way to pass multiple files to cypher-shell.

I don't want to write multiple cypher-shell commands passing the different file instead looking for the solution where I can pass a single file which has the path to the other files.

One solution could be combine all files into a single file using the .bat/.sh script and pass that to the cypher-shell....any other solution?

Michael Hunger

unread,
Jun 4, 2018, 7:02:55 PM6/4/18
to ne...@googlegroups.com
You can just pipe all the scripts to cypher-shell, .e.g. 

cat script1.cypher script2.cypher | cypher-shell ...

Michael

--
You received this message because you are subscribed to the Google Groups "Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages