0

I have a python program that I run with;

hypercorn main:app --bind 0.0.0.0:8005 --workers 4

Also I have a node program that I run with;

node index.js

But both of them are continuous processes.

So when I write the first command to run my Python program the task run continuously.

If i write the command like;

hypercorn main:app --bind 0.0.0.0:8005 --workers 4 && node index.js

Node app will never run because hypercorn still continues.

How can i run two commands together?

Thank you!


Edit: The following command works in a local machine.

start "" cmd /c COMMAND1 && cmd /c COMMAND2

However, I want to write a startup script for my Windows machine in Google Compute Engine, unfortunately it doesn't work in Compute Engine.

Compo
  • 36,585
  • 5
  • 27
  • 39
muzak
  • 33
  • 4
  • Have you tried to use powershell? like Start-Process hypercorn main:app --bind 0.0.0.0:8005 --workers 4 Start-Process node index.js – Alejandro Leal Dec 30 '22 at 00:56

0 Answers0