Skip to main content
edited tags
Link
Gilles 'SO- stop being evil'
  • 866.5k
  • 205
  • 1.8k
  • 2.3k
added 43 characters in body
Source Link
Lee Lowder
  • 173
  • 1
  • 6

I need to read a large log file and send it over thea local network using (netbsd) netcat between two VMs on the same host workstation.

I know that netcat has an interval, but as far as I can tell, the smallest interval you can use is 1 line/second.

Most of the files I need to send this way have hundreds of thousands of lines, and some close to a million lines, so one line per second isn't feasible.

If I just use cat, my networkhost computer/workstation winds up getting bogged down to the point of being unusable.

Using bash and common *nix tools, is there a way I can send the files, but feed it to netcat at a rate of say, 5-10 lines/second or something like that?

The end goal of this is to allow me to do some proof of concept testing for a centralized log database I am considering.

I need to read a large file and send it over the network using (netbsd) netcat.

I know that netcat has an interval, but as far as I can tell, the smallest interval you can use is 1 line/second.

Most of the files I need to send this way have hundreds of thousands of lines, and some close to a million lines, so one line per second isn't feasible.

If I just use cat, my network winds up getting bogged down.

Using bash and common *nix tools, is there a way I can send the files, but feed it to netcat at a rate of say, 5-10 lines/second or something like that?

I need to read a large log file and send it over a local network using (netbsd) netcat between two VMs on the same host workstation.

I know that netcat has an interval, but as far as I can tell, the smallest interval you can use is 1 line/second.

Most of the files I need to send this way have hundreds of thousands of lines, and some close to a million lines, so one line per second isn't feasible.

If I just use cat, my host computer/workstation winds up getting bogged down to the point of being unusable.

Using bash and common *nix tools, is there a way I can send the files, but feed it to netcat at a rate of say, 5-10 lines/second or something like that?

The end goal of this is to allow me to do some proof of concept testing for a centralized log database I am considering.

Source Link
Lee Lowder
  • 173
  • 1
  • 6

How can I read lines at a fixed speed?

I need to read a large file and send it over the network using (netbsd) netcat.

I know that netcat has an interval, but as far as I can tell, the smallest interval you can use is 1 line/second.

Most of the files I need to send this way have hundreds of thousands of lines, and some close to a million lines, so one line per second isn't feasible.

If I just use cat, my network winds up getting bogged down.

Using bash and common *nix tools, is there a way I can send the files, but feed it to netcat at a rate of say, 5-10 lines/second or something like that?