I have a project that I'm working on, where part of the equipment produces output, which is constantly written to a text file. I need to do this to transfer this file as it is written on top of a simple tcp / ip connection.
I'm currently trying to do this through a simple netcat, but netcat only sends the portion of the file written at runtime. He does not continue to send the rest.
Now I have a server that listens on netcat on port 9000 (just for test purposes):
netcat -l 9000
And the send command:
netcat localhost 9000 < c:\OUTPUTFILE
Thus, in my understanding, netcat should actually broadcast the file, but it just stops when everything that existed at the beginning of the execution was sent. It does not kill the connection, but simply stops sending new data.
How do I get it to continuously transmit data?
source share