tcp-pipe

command module
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 2, 2018 License: BSD-3-Clause Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

tcp-pipe

tcp-pipe: a light-weight UNIX pipe via TCP socket

Description

The tcp-pipe program allows you to stitch together STDOUT on one machine to STDIN on another machine through a TCP connection.

Why not the venerable netcat, a.k.a., nc? Indeed, nc is a versatile and capable tool. However when using in a distributed environment, some versions of nc failed to terminate once their STDIN was closed, causing the network connection on both ends to hang. If you experience the same problems with your nc pipe, consider giving tcp-pipe a try.

Usage Example

Sending a directory hierarcy to host.example.com

Why not use the amazing rsync program? You should! But really, if you're running on hosts where you cannot easily install dynamically linked binaries, or when you are running without the need for encryption, this can be a handy alternative.

  1. First, run this on the destination host:

    tcp-pipe receive :6969 | tar xf -

  2. Second, run this on the source host:

    tar -c --format pax -f - someDir | tcp-pipe send host.example.com:6969

Among other benefits, using the pax format allows for better handling of pathnames.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址