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

Shell should provide a way to run system commands

    • Type: Icon: New Feature New Feature
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.3.3
    • Affects Version/s: None
    • Component/s: Shell
    • Labels:
      None

      The mongo shell should provide a way for executing system commands from inside the shell. This would make the http://www.mongodb.org/display/DOCS/fsync+Command#fsyncCommand-Lock%2CSnapshotandUnlock procedure easier and more self-contained.

      essentially:

      db.runCommand(

      {fsync:1,lock:1}

      )

      system("/path/to/my-filesystem-snapshotting-script.sh")

      db.$cmd.sys.unlock.findOne();

            Assignee:
            mathias@mongodb.com Mathias Stearn
            Reporter:
            slyphon Jonathan Simms
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: