1

I am using mongo db for my dashboard project. Now I have the following four steps to be followed in a row:

  1. cd scripts

  2. node compiler.js

  3. type mongo and enter the mongodb

  4. type load('final_compiled.gen.js')

  5. call mongo_function()

I am able to follow til step 4 using the script. but I am unable to call mongo_function() using the script which is running in the mongo db context. Can anyone help me in doing this.Thank You......

2
  • Can you share your final_compiled.gen.js script? Commented Jun 2, 2014 at 12:45
  • @JamesWahlin it's a very long script. If you can share your email id woth me thn i can mail it to you. Thank you.. Commented Jun 2, 2014 at 12:58

1 Answer 1

1

You can do it easily. first you have to enter all the commands that you want to run in mongoDb context into javascript file and you will have to write a shell script which just loads that javascript file into the mongo context.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.