Comment on Show HN: Quickly copy a file between computersparentComments−niggler13yTo solve both complaints, just tar -c on the ingress and tar -x on the egress: sender$ tar -c file | nc -l 12345 recipient$ nc addr 12345 | tar -x This will create a file on the recipient side with the specified name and properties (and you run the sender command first)−diginuxOP13yDoesn't seem to work for mesender$ tar -c awesome.jpg | nc -l 0.0.0.0 12345(waiting forever)recipient$ nc 255.255.255.255 12345 | tar -xtar: This does not look like a tar archivetar: Exiting with failure status due to previous errors−bluehex13yI'm not at a terminal now so can't verify this but it looks like you swapped the send and receive addresses from what was suggested. Try send on broadcast and receive on 0.0.0.0.
Comments
To solve both complaints, just tar -c on the ingress and tar -x on the egress:
This will create a file on the recipient side with the specified name and properties (and you run the sender command first)Doesn't seem to work for me
sender$ tar -c awesome.jpg | nc -l 0.0.0.0 12345
(waiting forever)
recipient$ nc 255.255.255.255 12345 | tar -x
tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors
I'm not at a terminal now so can't verify this but it looks like you swapped the send and receive addresses from what was suggested. Try send on broadcast and receive on 0.0.0.0.