I have two set of commands to be executed from different directories from a shell script.
My content of the shell script is below:
echo "starting Windshaft cartodb..."
cd /home/user/Windshaft-cartodb/
node app.js development
echo "Windshaft cartodb started."
echo "starting CartoDB SQL API..."
cd /home/user/CartoDB-SQL-API/
node app.js development
echo "CartoDB SQL API started."
When I run the shell script file, the first 3 commands were running successfully. In order to run the next commands, I have to stop the previously running command by pressing Ctrl + C. Script processing continues with echo "Windshaft cartodb started."
only after doing this.
My problem is: Without stopping the previously running commands, I need to execute the commands after the below commands in a new terminal.
echo "starting Windshaft cartodb..."
cd /home/user/Windshaft-cartodb/
node app.js development
How to open a new terminal by commands in a shell script?