1

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.

4
  • 2
    Make it echo into ${named_pipe} ? Commented Apr 21, 2018 at 7:15
  • yeah that sounds good to me lol Commented Apr 21, 2018 at 7:33
  • I was thinking of a few things, but not sure why I didn't think about that Commented Apr 21, 2018 at 7:33
  • add an answer to receive maximum compensation thx Commented Apr 21, 2018 at 7:33

1 Answer 1

2

Make the script echo into ${named_pipe}.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .