secureCRT直接使用rz命令上传大文件失败问题解决

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/BabyFish13/article/details/82666731

linux shell rz和sz是终端下常用的文件传输命令,rz和sz通过shell被调用,其中rz用于从启用终端的系统上传文件到目标系统(终端登录的目标系统)。
参数描述:

[hadoop@emr-worker-9 nisj]$ man rz
 -e, --escape
              Force sender to escape all control characters; normally XON, XOFF, DLE, CR-@-CR, and Ctrl-X are escaped.
 -a, --ascii
              Convert files to Unix conventions by stripping carriage returns and all characters beginning with the first Control Z (CP/M end of file).
 -b, --binary
              Binary (tell it like it is) file transfer override.

文件比较大而上传出错的话,采用参数 -e
如果用不带参数的rz命令上传大文件时,常常上传一半就断掉了,很可能是rz以为上传的流中包含某些特殊控制字符,造成rz提前退出
所以,使用 rz  -be;可以最大程度的确保传输过程不被中断。

猜你喜欢

转载自blog.csdn.net/BabyFish13/article/details/82666731