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.

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

Make the script echo into ${named_pipe}.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.