Any easy way to copy files between terminals or computers on a local network.
Note: bcp currently assumes a trusted network, use with caution
make or gcc -D_FILE_OFFSET_BITS=64 -o bcp bcp.c
To make file availabe for copying:
$ ./bcp filename
To receive the file:
$ ./bcp
Sender
diginux@heisenberg:~/code/bcp/test$ ./bcp awesome.jpg
Listening for request..
Sending file to: 192.168.2.12:10789
Sent 107545
File sent.
Recipient
Jordans-MacBook-Pro:bcp diginux$ ./bcp
Requesting file..
Incoming connection from: 192.168.2.12
Receive: 107545
File received: awesome.jpg
-
A great (more robust) program that uses polling: http://www.fefe.de/ncp/
-
Another great approach, requires knowing name of sent file: https://www.udpcast.linux.lu/cmdlinedoc.html
-
Quick file distribution challenge: http://www.advogato.org/article/555.html