<!DOCTYPE html><html><head><title></title><style type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><div>Oh! That's very interesting. I haven't heard about coproc before. I'll see if it helps with this.<br></div><div><br></div><div>Thanks!<br></div><div><br></div><div>On Tue, Aug 6, 2024, at 1:55 PM, Giles Malet wrote:<br></div><blockquote type="cite" id="qt" style=""><div>On 2024-08-05 12:26, John Steel wrote:<br></div><div>> I was hoping to be able to have a bash script that could spawn a process, and send stuff in and out of it.<br></div><div><br></div><div>Bash has the notion of 'coprocesses', which are designed for exactly <br></div><div>that. I wonder if that might be useful? The two processes are connected <br></div><div>by pipes.<br></div><div><br></div><div>If you search for coprocesses in the bash man page, you should find this:<br></div><div><br></div><div><a href="https://www.gnu.org/software/bash/manual/html_node/Coprocesses.html">https://www.gnu.org/software/bash/manual/html_node/Coprocesses.html</a><br></div><div><br></div><div>g<br></div><div><br></div></blockquote></body></html>