[kwlug-disc] bash subprocesses & traps

John Steel john at jskw.dev
Tue Aug 6 14:37:08 EDT 2024


Oh! That's very interesting. I haven't heard about coproc before. I'll see if it helps with this.

Thanks!

On Tue, Aug 6, 2024, at 1:55 PM, Giles Malet wrote:
> 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
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kwlug.org/pipermail/kwlug-disc_kwlug.org/attachments/20240806/a44eb6a6/attachment.htm>


More information about the kwlug-disc mailing list