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

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -