I am trying to run multiple python scripts in parallel with subprocess
in a linux OS
Similar to this: Running multiple commands from multiple terminal windows from python script
Here is what I tried:
subprocess.call(['gnome-terminal', '-e', "python3 ab.py"]) subprocess.call(['gnome-terminal', '-e', "python3 bc.py"]) subprocess.call(['gnome-terminal', '-e', "python3 cd.py"])
Unfortunately, the terminal flashes in split seconds and disappears. Any reason for this? adding shell=True
makes the terminal stays but does not execute the script.