A
A
Andrey Rudakov2022-01-11 20:47:33
linux
Andrey Rudakov, 2022-01-11 20:47:33

How to run multiple command lines at once with nodemon in Ubuntu?

Good afternoon.
How to run multiple command lines at once with nodemon in Ubuntu?
I do the following in file.sh:
nodemon MicroService/User/src/user.js
How can I run several terminals (command lines) from this file at once and in each one to start nodemon with the nodejs microservice?
This option is not suitable:

nodemon MicroService/User/src/user.js & nodemon MicroService/Shop/src/shop.js

Since they all run in the same terminal.

This is what I'm trying to do to run all the microservices at once, maybe it's time for me to learn Docker or something like that?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Z
Zhbert, 2022-01-11
@Zhbert

Use tmux or screen.

S
sergey, 2022-01-11
kuzmin @sergueik

run several terminals (command lines) at once - gnu screen
https://help.ubuntu.ru/wiki/screen
has alternative options.
https://losst.ru/spargalka-po-tmux

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question