[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: |
Fri, 5 Jul 2024 15:44:52 -0400 |
On Fri, Jul 05, 2024 at 15:16:31 -0400, Chet Ramey wrote:
> They're similar, but they're not jobs. They run in the background, but you
> can't use the same set of job control primitives to manipulate them.
> Their scope is expected to be the lifetime of the command they're a part
> of, not run in the background until they're wanted.
Some scripts use something like this:
#!/bin/bash
exec > >(tee /some/logfile) 2>&1
logpid=$!
...
exec >&-
wait "$logpid"
Your expectations might be different from those of bash's users.
- Re: waiting for process substitutions, Mark March, 2024/07/02
- 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 <=
- 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, 2024/07/08
- 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