Shell should provide a way to run system commands

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Done
    • Priority: Major - P3
    • 1.3.3
    • Affects Version/s: None
    • Component/s: Shell
    • None
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • 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 Stearn
            Reporter:
            Jonathan Simms
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: