1from subprocess import Popen
2
3# Subprocess Command
4cmd = "python3 another_process.py"
5p = Popen(cmd.split())
6print("Process ID:", p.pid)
7
8# Check the status of process
9# poll() method returns 'None' if the process is running else returns the exit code
10print(p.poll())