How to get PID of the subprocess with subprocess check_output

Viewed 7391

In my python script I'm trying to run some long lasting download process, like in the example below, and need to find a PID of the process started by check_output:

out = subprocess.check_output(["rsync","-azh","file.log",...])

Is it possible to do?

1 Answers
Related