pgrep ps and grep. procps package. Get PID of patching processes: psgrep python Sample output: 123 456