Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

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
add comment

1 Answer

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

share|improve this answer
add comment

Your Answer

 
discard

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.