[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: waiting for process substitutions
From: |
Greg Wooledge |
Subject: |
Re: waiting for process substitutions |
Date: |
Mon, 8 Jul 2024 16:56:58 -0400 |
On Mon, Jul 08, 2024 at 22:45:35 +0200, alex xmb sw ratchev wrote:
> On Mon, Jul 8, 2024, 22:15 Chet Ramey <chet.ramey@case.edu> wrote:
>
> > On 7/8/24 4:02 PM, alex xmb sw ratchev wrote:
> >
> > > hi , one question about ..
> > > if a cmd contains more substitions like >( or <( , how to get all $!
> > > maybe make ${![<cmdnum>]} , or is such already .. ?
> >
> > You can't. Process substitutions set $!, but you have to have a point
> > where you can capture that if you want to wait for more than one. That's
> > the whole purpose of this thread.
> >
>
> so no ${![2]} or so ?
> else i see only half complex start_first stuff
>
> anywa .. greets = ))
Bash has nothing like that, and as far as I know, nobody is planning to
add it.
If you need to capture all the PIDs of all your background processes,
you'll have to launch them one at a time. This may mean using FIFOs
(named pipes) instead of anonymous process substitutions, in some cases.
- Re: waiting for process substitutions, (continued)
- Re: waiting for process substitutions, Chet Ramey, 2024/07/03
- Re: waiting for process substitutions, Martin D Kealey, 2024/07/03
- Re: waiting for process substitutions, Zachary Santer, 2024/07/03
- Re: waiting for process substitutions, Chet Ramey, 2024/07/05
- Re: waiting for process substitutions, Greg Wooledge, 2024/07/05
- Re: waiting for process substitutions, Dale R. Worley, 2024/07/08
- Re: waiting for process substitutions, Chet Ramey, 2024/07/08
- Re: waiting for process substitutions, alex xmb sw ratchev, 2024/07/08
- Re: waiting for process substitutions, Chet Ramey, 2024/07/08
- Re: waiting for process substitutions, alex xmb sw ratchev, 2024/07/08
- Re: waiting for process substitutions,
Greg Wooledge <=
- Re: waiting for process substitutions, alex xmb sw ratchev, 2024/07/08
Re: waiting for process substitutions, Dale R. Worley, 2024/07/04
Re: waiting for process substitutions, Chet Ramey, 2024/07/05
- Re: waiting for process substitutions, Zachary Santer, 2024/07/09
- Re: waiting for process substitutions, Zachary Santer, 2024/07/09
- Re: waiting for process substitutions, Zachary Santer, 2024/07/14
- Re: waiting for process substitutions, Chet Ramey, 2024/07/18
- 'wait -n' with and without id arguments, Zachary Santer, 2024/07/20
- Re: 'wait -n' with and without id arguments, Chet Ramey, 2024/07/26
- Re: 'wait -n' with and without id arguments, Zachary Santer, 2024/07/31