Accustomed to the SECURECRT and Xshell of RZ and SZ under Windows.
RZ can be very convenient to transfer files from the client to the server, SZ can also be very convenient to transfer files from the server to the client, even if the intermediary between the board is not affected. Under the Mac test, Mac terminal is not supported, need to download item2. In addition, you can not use expect to automatically log on to the server under the Mac, perform RZ or sz otherwise the terminal will be hung off.
? 1. First install ITEM2,item2 city-like Mac-style terminal
Item2,?? http://iterm2.com/downloads.html, download and unzip to run
2. Use Brew to install Lrzsz
yubing> sudo brew install Lrzsz
Check if Ls-alh/usr/local/bin/sz is present after installation is complete
Download Iterm2-zmodem
$ 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 $ sudo chmod 777/usr/local/bin/iterm2-* |
Add trigger trigger to terminal ITERM2
Open ITERM2------simultaneously press command and,-------Profiles----------Default-------advanced------Triggers Edit button
Address: http://blog.sina.com.cn/s/blog_467eb8ca0102vatl.html
Mac uses RZ, sz remote upload download file