Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to use Automater(first attempt of using this software) to create a sequence that will automatically run ./usr/mongo/bin/mongod and ./usr/mongo/bin/mongo then run my node.js server app at usr/node/app.js on startup

Currently I am able to run ./usr/mongo/bin/mongod using automater by using the Run Shell Script option. After that however the script fails

My script is as follows.

./usr/mongo/bin/mongod ./usr/mongo/bin/mongo /usr/node/ node app.js

Could you please help me solve this issue?

share|improve this question
'.' means relative to the current directory, while you probably want to specify the path of relative to the root '/'. – Gerry Feb 1 '13 at 16:38
@Gerry I added ./ to run the mongod shell script – BaconJuice Feb 1 '13 at 16:41
Have you consider creating a launch agent instead? – njboot May 13 '14 at 7:48
What does "on startup" mean for this script? When you run it? When you log in to your user? When any user logs in? Or as a service before any user necessarily logs in but once the machine has started running programs in the background? – bmike Jul 16 '14 at 14:11

./usr/mongo/bin/mongod; ./usr/mongo/bin/mongo; /usr/node/app.js
As was mentioned by @Gerry, you should specify complete paths.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.