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

Shell should provide a way to run system commands

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.3.3
    • Component/s: Shell
    • Labels:
      None

      Description

      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();

        Attachments

          Activity

            People

            Assignee:
            redbeard0531 Mathias Stearn
            Reporter:
            slyphon Jonathan Simms
            Participants:
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: