Objective:
Blog Park for a long time, have been trying to write something. Maybe you have limited ability and not enough confidence. Originally wanted to use a gorgeous technology to share as the opening of the blog park. The Sqoop has been brewing for a long time using sharing, but has been sealed in a draft box. Recently need Daoteng file, then use this article as a note opening:)
Use the background:
There are many tools for remote file transfer, such as RZ, Sz;scp;ftp, and so on. I use the imac, which is usually transmitted via SCP. However, because the company's test environment server needs to be accessed via a springboard machine, it is difficult to coordinate machines that cannot use SCP,FTP. After consulting colleagues learned that you can use RZ, sz for transmission. So I tried the next ... The results are as follows ...
And then the window hangs out ... And then there's no ...
Body:
First, download and install ITerm2
Http://www.iterm2.com/#/section/downloads
Ii. Download and install Lrzsz
1. Sudo brew install Lrzsz
2,ln-s/usr/local/cellar/lrzsz/0.12.20/bin/sz
Ln-s/usr/local/cellar/lrzsz/0.12.20/bin/rz
Third, download and install automatic zmoderm for ITerm2
1,/usr/local/bin
2, sudo wget https://raw.github.com/mmastrac/iterm2-zmodem/master/iterm2-send-zmodem.sh
sudo wget https://raw.github.com/mmastrac/iterm2-zmodem/master/iterm2-recv-zmodem.sh
3,sudo chmod 777/usr/local/bin/iterm2-*
Iv. Adding ITERM2 Trigger
ITerm2--Profiles---Open Profiles---Profiles---advanced----Edit Trigger
Configuration items:
Regular expression Action Parameters
\*\*b0100 Run Silent coprocess/usr/local/bin/iterm2-send-zmodem.sh
\*\*b00000000000000 Run Silent coprocess/usr/local/bin/iterm2-recv-zmodem.sh
After the configuration is OK ~ Small partners in the installation of the use of the process encountered any problems, welcome message to discuss together ha:)
Mac OSX uses RZ, sz remote upload, download file