mac iterm2 expect failure mode sz rz

With the Mac, iterm2 login server, log on to write the script server, which uses the expect command.
Mac and server are installed sz rz tool, but with sz download files from the server, has been in a state of suspended animation, though suggesting that a file transfer is successful, but to a local folder did not find. From the Internet to find what is found sz rz expect command will result in failure. So look for the following solutions.

Reference is made to a solution: https://blog.csdn.net/lovewebeye/article/details/85049423 shining get down.

Create a new script, enter the following

#!/bin/sh
#basepath=$(cd `dirname $0`; pwd)
export LC_CTYPE=en_US
#expect脚本所在位置
#filepath=$basepath/XXX.sh
exec 脚本的绝对路径

The main plus is an export LC_CTYPE = en_US and then do our real logon script in the script.

Mac iterm2 not use after use expect lrzsz instructions to upload is not being given, there is no file

About how only rz sz support https://blog.51cto.com/fulin0532/1926254

Guess you like

Origin blog.51cto.com/fulin0532/2439271