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
Post a Comment