Say I have a netcat server running like so:
nc -l 4444 | while read line; do
# how can I write back to the socket?
done;
the only thing I have found so far in my search is to use the -c
option to respond:
nc -l 4444 -c 'echo "this is the response"'
is there another way to write to the socket connection?