5

run("/test.js")

in mongo shell. i always get error

run("/test.js") shell: started program /test.js sh2516| Unable to start program /test.js errno:13 Permission denied 255

for test i add 777 permission on this file i doesn't have any passwords on DB

test.js is empty

What am I doing wrong?

1 Answer 1

11

try using load() rather than run(). load is for javascript while run is for system binaries.

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.