我想將文件傳輸到串聯HP/Non-Stop環境。使用C進程將記錄寫入文件,然後使用另一個C進程讀取這些進程。以二進制模式FTP'ing結構化文件
該文件本身包含一些使用標準文本編輯器無法讀取的記錄。我想這意味着要正確傳輸文件,我需要在二進制模式下傳輸它。以二進制模式嘗試傳輸會產生以下錯誤。
ftp> bin
200 Type set to I.
ftp> put SM11098
200 PORT command successful.
553 Error: Structured file transfer only allowed in Ascii mode,
ftp> ascii
200 Type set to A.
ftp> put SM11098
200 PORT command successful.
150 Opening data connection for SM11098 (10.220.98.237,4078d).
552 SM11098: Relative file record length > Maximum record length
ftp: 1576960 bytes sent in 4.08Seconds 386.70Kbytes/sec.
我試圖谷歌上述錯誤,但沒有出現。 對我來說,結構化文件聽起來像是一個包含結構化記錄的二進制文件。不應該以二進制模式FTP'd? FTP程序迫使我使用ASCII模式。
第二個錯誤是什麼? (即「相對文件記錄長度>最大記錄長度」)