[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-bash] Native way to get PIDs of processes in a pipeline?
From: |
Peng Yu |
Subject: |
[Help-bash] Native way to get PIDs of processes in a pipeline? |
Date: |
Mon, 21 Jan 2019 14:24:27 -0600 |
Hi,
I'd like to get PIDs of all the processes in a pipeline. Is there
native support on this (similar to PIPESTATUS)?
$ echo $BASHPID >&2 | echo $BASHPID &
[1] 89354
89353
89354
[1]+ Done echo $BASHPID 1>&2 | echo $BASHPID
$ echo $!
89354
--
Regards,
Peng
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Help-bash] Native way to get PIDs of processes in a pipeline?,
Peng Yu <=