I am trying to run a few commands through the bash script in mac.
Here is my script
#!/bin/bash
testDirectory='/Users/jxxxx/Desktop/xxxxx/mad_team_training/Trimify/backend-operations/tests/pagination-integration.test.js'
deleteScript='/Users/xxxxx/Desktop/xxxxx/mad_team_training/Trimify/backend-operations/scripts/test-delete-table.sh'
echo "$testDirectory"
cd ../
sls offline start
open -a Terminal.app $deleteScript
RUNNING_PID=$!
kill ${RUNNING_PID}
Problem
sls offline start
will require mfa and then logs the output continously on terminal( which is needed)- But i want to run deleteScript in seperate terminal once sls offline starts but it is not running in the new terminal with current script, somehow it starts only after sls process is killed
- once delete script is over, kill
sls offline start
process