I want to run multiple scripts/commands in parallel in bash. Here is the bash script :
python test_script.py &
docker stop process &
docker stop process1 &
sleep(1)
wait
docker start process1 &
docker start process &
wait
Here, im running multiple dockers and want to start/stop docker when my script python test_script.py is running.
for ex: python script is running and on parallel i want to stop process & process1 docker. python script is still in-progress and then say wait or sleep for 1 min and start the process again.
How can i achieve it ?