0

On my dev machine, I'm very often starting a lot of services at once (10+), and then at once I kill them using CTRL+C (very important).

The problem is that the output will be presented is only for the latest command. for example:

$ npm run service-a | npm run service-b | npm run service-c

In this case, I will see output only from service-c.

Running with & will cause many processes to be opened. Running with && will run only the first task because its a live service.

What are my options?

Thanks

SexyMF
  • 209
  • 1
  • 2
  • 10

1 Answers1

0

Found it

sh -c "npm run service-a & npm run service-b & npm run service-c & wait"

SexyMF
  • 209
  • 1
  • 2
  • 10