[SERVER-1101] when the shell is run with a script, it would be nice if it did not require connection to a db Created: 07/May/10  Updated: 07/May/10  Resolved: 07/May/10

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Roman Shtylman Assignee: Eliot Horowitz (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

When running the mongo shell and providing a .js file to run, it would be convenient if the user did not have to specify a host on the command line as well.

Lets say I have a script which connects to a certain host/db and then does some actions against that connection. If I don't have a mongo instance running locally and try to run the script using the shell:

mongo <my script>.js

It will fail because it can't connect to localhost. ideally, it should not try to connect to localhost, but just be able to run my script (which itself specifies where to connect to). This is kind of a special case and basically allows you to start the shell without an initial connection.



 Comments   
Comment by Eliot Horowitz (Inactive) [ 07/May/10 ]

you can use --nodb and it won't need a db

Generated at Thu Feb 08 02:56:03 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.