Re: reliable ftp?



In article <004f01c9450a$49bbe550$090101c0@PCC>, "Dave Powell, MMfab" <dave@xxxxxxxxx> writes
Before we get stuck to a tarball (yes, I've been reading the other replies),
maybe we should look away from compression & packaging and check the file
structure and original cause of the "garble".

What kind(s) of file are you moving in which direction? How many at a time?

Moving just one file at a time, I've had good luck just fiddling with FTP
parameters. Ascii / binary transfer, creative buildparms, etc.

For instance, to have the HP get native-mode programs downloaded from the old
Telamon site, I used binary transfer with the the following buildparms:
'rec=128,1,f,binary;disc=<calculated-number>;code=NMPRG'
The "calculated number" is the number of bytes in the file on the PC, divided
by 256.

I *think* almost any single file should be doable with some such trick.


To back up Dave's comments, I normally find that FTP to and from the 3K normally works fine for virtually any type of file and we do a lot of it from lots of different platforms.

The important thing on getting files is to decide between Text(ASCII) or Binary. Binary is nearly always what you want as you don't get any clever ftp software doing characterset translation for you. Yes you can binary transfer ascii files.

If your putting files to the 3K then getting the parameters as Dave indicates is important, the standard defaults are nearly never what you want :-)

An example of what you are trying to do would be useful. i.e. do a listf,2 on a file that you would like to get from and then put back to the 3K.

A couple of useful utilities on the 3K are tobyte.hpbin.sys and frombyte.hpbin.sys. They will either convert a file to bytestream or backfrom bytestream.

--
Alan Yeo
ALANYEO@xxxxxxxxxxxx Just because you're paranoid
Phone +44 1684 291710 it doesn't mean someone isn't!.
Fax +44 1684 291712
.



Relevant Pages

  • Re: transfer txt-files to VMS, please help.
    ... > If you desire the second example, then I'd try to do a BINARY transfer. ... stream of bytes into gibberish. ... deposited to a directory by FTP and the process those files. ... So your wintel box would deposit the text files, and a couple minutes later, ...
    (comp.os.vms)
  • Re: EBCDIC to ASCII
    ... HARDWARE EBCDIC-ASCII conversion done by the communications software. ... Simplify the data so that it can be handled by the FTP. ... Do not do binary FTPs between EBCDIC and ASCII machines. ...
    (comp.lang.cobol)
  • Re: .txt extension added during download
    ... I have no way to use a FTP client. ... of the download the file is recognized as ".ab1" only, ... that the .txt extension appears. ... initiating a 7-bit transfer rather than a binary transfer. ...
    (comp.sys.mac.apps)
  • Re: Can Visual Studio handle Unix-style line-ends?
    ... If you are using FTP between a UNIX system and a Windows system, ... binary transfer of text files as the line ending convention will be ...
    (microsoft.public.vstudio.general)