Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: file transfer with zsh



2011-03-30 14:09:18 +0200, Simon Mages:
> Hi,
> 
> I have to transfer archives from many Solaris 10 Machines to one of them. I
> can't use FTP, NFS or Netcat because they are not installed or blocked and
> SCP (SFTP) is to slow.
> 
> So i studied the man pages of zshtcpsys and zshmodules but with no success.
> I found some Examples in the Internet but they only transfer text in
> different ways.
> 
> At the Moment i don't have access to the Machines but i think the installed
> zsh version is 4.1.2 or 4.1.1.
[...]

To transfer directory "dir" from host hostA to host hostB:

On host hostB, run

(zmodload -i zsh/net/tcp &&
 ztcp -ld3 11111 &&
 ztcp -ad4 3 &&
 tar -zxpf - --numeric-owner <&4
)

Then on host hostA

(zmodload -i zsh/net/tcp &&
 ztcp -d3 hostB 11111 &&
 tar cf - dir | gzip -1 >&3
)

-- 
Stephane



Messages sorted by: Reverse Date, Date, Thread, Author