Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-1101

when the shell is run with a script, it would be nice if it did not require connection to a db

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None

      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.

            Assignee:
            eliot Eliot Horowitz (Inactive)
            Reporter:
            shtylman Roman Shtylman
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: