execute command in command line.
I am trying to connect to a local database. I can use the terminal to execute commands to the database that work. The trick is that I am having difficulty sending those commands from bridge. This is what I have tried.
app.system("Mongod --fork");
app.system("mongo");
app.system("use mydb");
app.system("db.testData.update({ name: 'bg'}, { $set: { name: 'Brett Gonterman'}})");
if I type this manually it works. If I send this through Bridge nothing happens.
How can I execute this?
