Skip to content

Instantly share code, notes, and snippets.

@petruisfan
Created February 19, 2016 10:12
Show Gist options
  • Save petruisfan/c9e1f3f96e8b84ea741c to your computer and use it in GitHub Desktop.
Save petruisfan/c9e1f3f96e8b84ea741c to your computer and use it in GitHub Desktop.
Parse parameters to mongo script from shell
mongo "localhost:27017/metascan" --eval \
"var start='${START}', stop='${STOP}', thread=2, threads=${THREADS}, verbose=${VERBOSE}" \
mcl-mongo-hashgen.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment