Answer the question
In order to leave comments, you need to log in
Why does bash command only run the first command?
I need to go into the folder and run these three commands
. I run announcement-comment.js
#!/bin/bash
cd /var/www/project && node node.server.production/announcement-comment.js && node node.server.production/enterprise-review.js && node node.server.production/message.js
Answer the question
In order to leave comments, you need to log in
#!/bin/bash
cd /var/www/project; node node.server.production/announcement-comment.js; node node.server.production/enterprise-review.js; node node.server.production/message.js
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question