[CentOS] tar - ssh - standard out
Robert Heller
heller at deepsoft.com
Thu Aug 12 13:18:31 UTC 2010
At Thu, 12 Aug 2010 06:05:25 -0700 CentOS mailing list <centos at centos.org> wrote:
>
> On 08/12/2010 05:33 AM, Les Mikesell wrote:
> > Why do you need any other process involved to work with a data stream? If you
> > want to collect it to a remote file, you can | ssh remotehost 'cat>
> > path_to_file'. Just be sure to quote the redirection so it happens on the
> > remote side.
> >
> >
>
> At a guess it's the compression he is after. Over a slow link it could
> make a substantial difference.
Just add gzip (or bzip2) to the pipeline:
program | bzip2 | ssh -q remote-host 'bunzip2 | remote-program'
>
--
Robert Heller -- Get the Deepwoods Software FireFox Toolbar!
Deepwoods Software -- Linux Installation and Administration
http://www.deepsoft.com/ -- Web Hosting, with CGI and Database
heller at deepsoft.com -- Contract Programming: C/C++, Tcl/Tk
More information about the CentOS
mailing list