[kwlug-disc] bash subprocesses & traps

Giles Malet gdmalet at gmail.com
Tue Aug 6 13:55:17 EDT 2024


On 2024-08-05 12:26, John Steel wrote:
> I was hoping to be able to have a bash script that could spawn a process, and send stuff in and out of it.

Bash has the notion of 'coprocesses', which are designed for exactly 
that. I wonder if that might be useful? The two processes are connected 
by pipes.

If you search for coprocesses in the bash man page, you should find this:

https://www.gnu.org/software/bash/manual/html_node/Coprocesses.html

g



More information about the kwlug-disc mailing list