Cypher-Shell - how to run testquery.cypher in background

I have a simple question on cypher-shell as i didnt find much of documentation on this.

What i am running is some command to load data from csv from cypher shell


my testquery.cypher -
USING PERIODIC COMMIT 1000 LOAD CSV WITH HEADERS FROM "file:///test1.csv" AS eachLine FIELDTERMINATOR ',' WITH eachLine return eachLine ;
I am doing some operation post this.. removed from sample query
I am running this --

cat testquery.cypher | cypher-shell -u neo4j -p 'XXXXX' from leader.

This will work fine, but since the data is large, i want to run it in background.
So question I have : is there anyway to run it in background.

presuming this is linux? simply append a & to the command and thus

cat testquery.cypher | cypher-shell -u neo4j -p 'XXXXX'  &

& isnt a Neo4j implementation rather simply a linux implementation and available for most any command line invocation. See for more details

I knew about & in the end but didnt know this will work while calling cypher-shell . Thanks
This worked :slight_smile: