[CentOS] tar - ssh - standard out

Thu Aug 12 16:58:18 UTC 2010
Les Mikesell <lesmikesell at gmail.com>

On 8/12/2010 8:46 AM, Tom Brown wrote:
>> Why not just do
>>
>> `the thing that generates standard out here` | ssh -q 192.168.122.2 dd of=somethin
>>
>>
>> eg
>>
>> find . | ssh -q 192.168.122.2 dd of=find.out
>>
>> You don't need tar for anything.
>
>
> alas the thing that generates the output creates 5 or 6 seperate
> streams in sequence that generate 5 or 6 log files but i dont know in
> advance the names of these logs.

You'll have to explain how the streams get sorted out locally before 
anyone can help you do it remotely.  Maybe the program itself could 
piped each stream through a separate ssh instance.  Or if you can wait 
for output to complete, collect all the files in an otherwise empty 
directory and rsync the whole thing to the remote.

-- 
   Les Mikesell
    lesmikesell at gmail.com