TCPpipe provides a small console-tool to transfer any data over a network.
TCPpipe is a small console-tool to transfer any data over a network. TCPpipe has to be run on both hosts. After establishing a TCP connection, the standard input on one host is sent to standard output on the other host.
This can be used to create something like a pipeline between two processes which run on different hosts.
TCPpipe is a very simple program, but it can be very useful.
To compile type:
$ make
Then copy the binary where you want, for instance:
# cp tcppipe /usr/local/bin
USAGE EXAMPLES:
For example you can transfer files without an FTP or HTTP server:
On host A:
tcppipe --listen --port 1100 --send < file-on-A
On host B:
tcppipe --connect --port 1100 --receive host.name.of.A > file-on-B
(The port 1100 is only an example, change the file- and hostnames.)
You could even transfer many files with tar:
tar -cOf file1 file2 dir/* | tcppipe -lp1100
tcppipe -cp1100 192.168.0.5 | tar -xf -
To gzip the data do this:
prog-producing-output | gzip | tcppipe --send ...
tcppipe --receive ... | gunzip | prog-reading-input
What's New in This Release:
· all the documentation stuff + improved Makefile
· support for resolving host names
· additional parameter checks
Product's homepage