I have this pipeline:
( tail -f ${named_pipe} | nc localhost ${port} | ql_conditional_release &> "$HOME/debug.log" & disown; ) &> /dev/null
so I am reading from the netcat connection.
How can I write to that same connection? It should be two-way.
Basically if a condition is met in the ql_conditional_release
function, I want to respond/write back to the same socket connection. No idea how to do that though.
${named_pipe}
?