News for hackers. Stuff that matters.
Re:Show HN: Quickly copy a file between computers by diginux on Saturday February 16, 2013 @03:12PM (#5232808)
1. In general, I am on the computer I want to send from, then I go to the computer I want to receive on. This script seems to require I be at the receiving computer first. Is there a trick to do it my way?

2. A very minor point, but you are still required to know (or at least specify) a the filename on the receiving end. My solution does not.

Re:Show HN: Quickly copy a file between computers by niggler on Saturday February 16, 2013 @03:38PM (#5232920)
To 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)
Re:Show HN: Quickly copy a file between computers by diginux on Saturday February 16, 2013 @05:01PM (#5233198)
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

Re:Show HN: Quickly copy a file between computers by bluehex on Sunday February 17, 2013 @09:51AM (#5235349)
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.