From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,8c1a326b982271bd,start X-Google-Attributes: gid1164f8,public From: speck@stsci.edu Subject: FTP problem from VAX to SPARC... Date: 1996/05/29 Message-ID: <1996May29.132154@stsci.edu>#1/1 X-Deja-AN: 157384253 organization: Space Telescope Science Institute, Baltimore, MD 21218 newsgroups: comp.sys.dec I am having the following problem, trying to FTP a file from a VAX machine to a SUN/SOLARIS machine. The file is named: gsrs04973.bak This file shows up as being 24 blocks long on the VAX. Performing a DIRECTORY/FULL on the file yields: GSRS04973.BAK;1 File ID: (44411,26,0) Size: 24/27 Owner: [SPECK] Created: 28-MAY-1996 09:58:57.28 Revised: 28-MAY-1996 09:58:57.43 (1) Expires: Backup: Effective: Recording: File organization: Sequential Shelved state: Online File attributes: Allocation: 27, Extend: 0, Global buffer count: 0 No version limit, Contiguous best try Record format: Variable length, maximum 512 bytes Record attributes: None RMS attributes: None Journaling enabled: None File protection: System:RWE, Owner:RWED, Group:RE, World:E Access Cntrl List: None The name of the SUN to which I am trying to perform the FTP is "anakin". From the VAX, I perform "ftp anakin". I then log in to anakin. Next, to transfer the file as a binary file, I issue the command "binary". Next, I perform "put gsrs04973.bak". Following the file transfer, I perform an rlogin on anakin and check the size of the file "gsrs04973.bak", which I have just transfered to the UNIX disk from the VAX disk. I find that the file is 24 bytes SHORTER on the UNIX disk than it was on the VAX disk. Note that, on the VAX, the file was 24 BLOCKS long. Thus, it appears that one byte-per-block is being lost in the VAX -> UNIX transfer. When I type the file on the VAX, I find that the file consists of 24 records, each consisting of 512 bytes, and each ending with a carrige-return character. When I cat the file on ANAKIN, I find that these carriage-returns are MISSING. Do you know how I can properly transfer the entire file from VAX to UNIX? Keep in mind that I must keep the carriage returns in the file. The program which reads the file requires the presence of the carriage returns. Thanks for any help, Scott