Uploading files to a VMS server issues - sftp

cyclone3d

[H]F Junkie
Joined
Aug 16, 2004
Messages
16,351
I have a work project I am working on that requires me to upload files to a VMS server via sftp.

the only problem is, every file I upload ends up having pages and pages of blank lines inserted into it during the upload. And not just in one place in the file.

I have tried both WinSCP and Filezilla with the same results.

Using ASCII or binary mode for uploads makes no difference.

I am kinda stuck until I can figure this out and was wondering if anybody had any suggestions.
 
Well, tried every sftp client I could find.. same result.

Same thing happens on XP and Windows 7.

I am thinking it is something server side. Anybody have any ideas as to what it could be?
 
Figured it out with the help of some peeps on the HP VMS forum.

It has to do with VMS saving the files differently when created/edited with the VMS editor.

So when you upload a new version to the VMS server via sftp and it asks to overwrite the file, it copies the file properties from the old file and ends up corrupting the new file.

If you delete/rename the old file, then upload the file, it works fine and won't mess up again unless you edit it on the VMS system and then try to upload a new version from a Windows system.

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1427339
 
Back
Top