Re: tar - ssh - standard out

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Robert Heller wrote, On 08/12/2010 09:18 AM:
> At Thu, 12 Aug 2010 06:05:25 -0700 CentOS mailing list <centos@xxxxxxxxxx> 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'
> 
> 

or even easier (though maybe not as good a compression as bzip would get if dealing with text only)
 program | ssh -C -q remote-host 'remote-program'

-- 
Todd Denniston
Crane Division, Naval Surface Warfare Center (NSWC Crane)
Harnessing the Power of Technology for the Warfighter
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux