I am trying to use netcat to read a line in a file every few milliseconds, and send it to a port..
So far I know from netcat documentation that it can insert a time interval between each line sent:
This is from netcat help manual:
-i
secs Delay interval for lines sent, ports scanned
I tried the following which allows me to insert a minimum of 1 second time interval between each line sent.
nc -q 10 -i 1 -lk 9999 < file_input
I would like to know if there is anyway to reduce this time interval to milliseconds. Maybe by piping input of the file to netcat using some utility that allows for configuring interval between each read in the order of milliseconds?