Netcat bidirectional communication
问题 The goal which I am attempting to achieve is for a client to send the following command to a server: echo "Hello" | nc IP Port Upon receiving the "Hello" keyword, the server which is listening using: nc -nlp port should then send a response "Holla" back to the client. I have tried the following, none of which work in my instance: run a command conditionally with netcat and grep Is a conditional response possible with netcat How to respond conditionally based on the request when using netcat