get pids of pipe processes