linux - Sending a file continuously via netcat/socat -


i want send file 1 raspberry pi continuously (until powered off or something). sending data 1 pi ap, , forwarding data ap other pi. using current code send file once (successfully):

receiver: socat tcp-listen:4242 /home/pi/desktop/smth

sender: socat tcp:hostname:4242 /home/pi/desktop/zeromega.dat

the file i'm sending (zeromega.dat) randomly generated file, since don't care data , need continuously send (loop) file of 1 mb 1 pi other. how this? know need create script run continuously, since need run on startup. appreciated. thanks.

put inside infinite loop:

while true;   # whatever should repeated forever done 

Comments

Popular posts from this blog

ruby on rails - Permission denied @ sys_fail2 - (D:/RoR/projects/grp/public/uploads/ -

c++ - nodejs socket.io closes connection before upgrading to websocket -

java - What is the equivalent of @Value in CDI world? -