Hi!
I wrote a simple server using netcat and a shell script (respectively a
batch file for MS-Dos).
At the moment I'm able to let netcat listen at a port, wait for incoming
traffic, respond to the client with a predefined answer (f.e. "ok") and
process the query thereafter:
netcat -l -p 50000 <answer.txt >query.txt
[...]
But what I want to do now is to receive a query from a client, process it
and answer with a *custom* response depending on the query to the same
connection. Is this possible at all with netcat? Any suggestions?
Tom
|