On Mon, Mar 31, 2003 at 03:23:13PM +0200, I?aki Mart?nez wrote:
>  Then what i need it is something like this:
> 
>  server2$ tar cvz directories_to_tar | ssh [EMAIL PROTECTED] > file_in_server1.tgz
> 
>  but THIS NOT WORK!!!! :-(

You need to make sure that the redirection happens on the remote host:

  tar cvz directories_to_tar | ssh [EMAIL PROTECTED] 'cat > file_in_server1.tgz'

Cheers,

-- 
Colin Watson                                  [EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to