javascript - How to concurrently run mongo scripts -
how can run
mongo mydbname script1.js
mongo mydbname script2.js
concurrently?
is there way fork execution? (i searching --fork option in mongod --fork)
thanks folks! olmo
running 2 scripts running 2 commands on shell.
simplest thing run them in 2 different shells. or can run them in background if not writing important stdout in scripts.
in more complex way, can write program fork , exec these 2 commands, it's overkill.
Comments
Post a Comment