Take the 2-minute tour ×  On my production stack, I have a
front-end server and a Mongo server. I would like to be able to
set a cron job on the front-end server to create some logs
daily.  I wrote a script that does this:  ./mongo
server:27017/dbname --quiet my_commands.js  If I run it from the
Mongo server as above, it works fine. However, I would like to
be able to run it from the front-end server. When I try to do
that, I get:  -bash: mongo: command not found  Since mongo is
not installed on the front end server, it gives me that error.
Is it possible to somehow bind mongo to my mongo on the Mongo
server?  share|improve this question  2 Answers 2  up vote 1
down vote accepted  Try providing the full path to the mongo
binary, as it's likely not in the cron user's $PATH.
share|improve this answer there is no mongo installed on the
frontend server. Is there a way to point it to the mongo server?
–  cKendrick Nov 3 '12 at 23:40 You don't need to run the mongod
process, but you do at least need the mongo cli