I just created this script to run the following commands all together at the same time:
#!/bin/bash
cd /home/me/Desktop/folder/app1
sudo service mongod start
grunt dev
cd ../app2
npm start
cd ../app3
npm start
http-server
sudo service nginx restart
but it only runs the first three lines .. help please