I'm quite new to shell scripting. I have to execute shell scripts using Python. The order of shell scripts is important. Here is my example Python code
import subprocess
import os
script1= "scripts/script1.sh"
script2 = "scripts/script2.sh"
script3 = "scripts/script3.sh"
subprocess.call([script1])
subprocess.call([script2])
subprocess.call([script3])
The Problem is with above code all scripts are executed separately one after the other but I want to run all under one process.
For example, script2 and script3 should be executed while script one is running.