L
L
Lavrov952021-07-02 13:58:24
Command line
Lavrov95, 2021-07-02 13:58:24

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

1 answer(s)
R
Ronald McDonald, 2021-07-02
@Zoominger

#!/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 question

Ask a Question

731 491 924 answers to any question