I know that I can get the stdin process to use a subprocess in python , for example:
import subprocess f = subprocess.Popen('python example.py',stdin=subprocess.PIPE) f.stdin.write('some thing')
but I want to know only the pid that I want to write to the stdin process, how can I do this?
timger
source share