import data into openshift mongoDb
I created a java application on openshift with the mongoDb cartridge.
My application runs fine, both locally on jboss AS7 as on openshift.
So far so good.
Now I would like to import an csv into the mongoDb on the openshift cloud.
The command is fairly simple:

    mongoimport -d dbName -c collectionName --type csv data.csv --headerline


This works fine locally, and I know how to connect to the openshift-shell and remote mongo-db. But my question is: how can I use a locally stored file (data.csv) when executing this commando in a ssh-shell.

I found [this][1] on the openshift forum, but I don't realy know what this tmp directory is and how to use it.
I work on windows, so I use Cygwin as a shell-substitute.

Thanks for any help


  [1]: https://www.redhat.com/openshift/community/forums/express/importing-data-into-mongodb-on-express
import data into openshift mongoDb
===

I created a java application on openshift with the mongoDb cartridge.
My application runs fine, both locally on jboss AS7 as on openshift.
So far so good.
Now I would like to import an csv into the mongoDb on the openshift cloud.
The command is fairly simple:

    mongoimport -d dbName -c collectionName --type csv data.csv --headerline


This works fine locally, and I know how to connect to the openshift-shell and remote mongo-db. But my question is: how can I use a locally stored file (data.csv) when executing this commando in a ssh-shell.

I found [this][1] on the openshift forum, but I don't realy know what this tmp directory is and how to use it.
I work on windows, so I use Cygwin as a shell-substitute.

Thanks for any help


  [1]: https://www.redhat.com/openshift/community/forums/express/importing-data-into-mongodb-on-express