Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python get pid of process

import os
process_id = os.getpid()

# https://docs.python.org/3/library/os.html has more information
 
PREVIOUS NEXT
Tagged: #python #pid #process
ADD COMMENT
Topic
Name
6+4 =