Rz File Upload Problems

Source: Internet
Author: User

Transferred from:Http://hi.baidu.com/tanyear/blog/item/d66af782702b8dbb6d811948.html

 

In the company's PC in the past six months, when SZ is used for downloading, Rz will always cause problems when uploading files. At the beginning, I suspected it was a Linux virtual machine or a network problem, which led to packet loss during transmission.

Recently, I found that the same problem exists in any server and will seriously affect my work. To this end, we decided to find out the culprit. Before downloading the file, use md5sum to calculate its MD5 value, then use SZ to download it to a local PC, and use md5sum in Windows to calculate it again, it is found that the MD5 value after being downloaded to the local computer is the same as that on the server. Finally, I uploaded the file to the server using RZ, and found that the change occurred when I uploaded the file to the server using Rz.

Narrow down the suspect object. How can RZ go wrong. Let's take a look at the settings of session option in securecrt. The XMODEM/zmodem column does not seem to have any verification settings. Pqf said, will it be that the binary method is not used during the upload? He uses RZ by himself. Generally, the sz will add the-B,-e parameters.
-B binary files are uploaded and downloaded in binary format. The characters are not interpreted as ASCII.
-E forces escape to control all characters, such as Ctrl + X and Del.

So I honestly used the RZ-be parameter to upload files and found that everything is the same. I began to doubt whether it was a RZ bug, So Google. Google has no results when it comes to Google, and there are no search keywords, for example, "RZ file changed", "RZ transfer size ". Is there a time when Google is not shining?

Okay. Put it first. This afternoon, I used RZ to upload another image, but the image was inaccessible due to changes. When we were getting down, we suddenly found the problem!

After entering RZ, the upload file dialog box does not know when the upload files as ASCII is checked. This damn option is removed and then tested. Everything is normal.

About RZ, SZ
RZ and Sz use the [xyz] modem protocol to upload and download files. In itself, zmodem is an old protocol. It seems that RZ and Sz cannot upload files. However, it is convenient and does not require server support. As long as the server supports RZ, SZ (not supported, Linux can install the lrzsz RPM package), client software support (such as securecrt ), you can easily upload and download files between the local PC and the server using two commands.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.