I am trying to start a
mongodb using a cronjob+shell-script combo.
In the shell, mongoDB starts when I enter
$ mongod, however my executable shell script fails with
mongod: command not found. I then tried
./mongodb, and the error was
No such file or directory.
It seems like it might be some sort of path problem (FWIW I have installed mongoDB using homebrew) but I'm not sure where to look to fix it.
How might I start a mongoDB from a shell script?