I'm setting up a repo and I want to make a shell script that will run two commands that run a backend and build a frontend. What I have so far is something like this:
#!/bin/sh sh -e "sh -c 'cd frontend && ng build'" sh -e "sh -c 'cd backend && symfony server:start'"
When I try running that though, I get back
sh: 0: Can't open sh -c ... for both lines. What is the solution to this? It should be clear that both these commands will not terminate until you do by hand. It is not necessary to open a new terminal for both commands, one can be executed in the current terminal.