我刚刚创建了这个脚本来同时运行以下命令:
#!/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
但它只运行前三行。请帮忙
我刚刚创建了这个脚本来同时运行以下命令:
#!/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
但它只运行前三行。请帮忙