* VAX to VAX binary ftp !!!!!!!!!!!
@ 1993-02-22 15:54 atmos
1993-02-23 2:27 ` oberman
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: atmos @ 1993-02-22 15:54 UTC (permalink / raw)
I was wondering if someone could help with a VAX to VAX FTP transfer that I
currently can't get to work.
I have a binary file on SITE_1 which I would like to FTP to SITE_2 using a
binary FTP transfer.
The file attributes of the original file are
Directory $DISK1:[SITE_1]
TEST.BINARY;1 File ID: (16655,3,2)
Size: 159/159 Owner: [USER_1]
Created: 19-FEB-1993 20:21:45.07
Revised: 20-FEB-1993 20:04:39.80 (4)
Expires: 6-MAR-1993 20:04:39.80
Backup: <No backup recorded>
File organization: Sequential
File attributes: Allocation: 159, Extend: 0, Global buffer count: 0
No version limit, Contiguous best try
Record format: Variable length
Record attributes: Carriage return carriage control
RMS attributes: None
Journaling enabled: None
File protection: System:RE, Owner:RWED, Group:RE, World:RE
Access Cntrl List: None
but by the time it reaches SITE_2 the file attributes are
Directory $DISK1:[SITE_2]
TEST.BINARY;1 File ID: (9358,83,0)
Size: 159/159 Owner: [USER_2]
Created: 22-FEB-1993 14:54:50.43
Revised: 22-FEB-1993 14:54:57.48 (1)
Expires: <None specified>
Backup: <No backup recorded>
File organization: Sequential
File attributes: Allocation: 159, Extend: 0, Global buffer count: 0
No version limit
Record format: Fixed length 512 byte records
Record attributes: None
RMS attributes: None
Journaling enabled: None
File protection: System:RE, Owner:RWED, Group:RE, World:RE
Access Cntrl List: None
Now I had hoped to use the DECUS program
ATTRIBUTE/RATTRIB=IMPLIED/RTYPE=VARIABLE TEST.BINARY
to fix the file attributes back again. But even after doing this the binary file
is still unreadale. Is there anything else I have to do to make it work?
Many thanks to anyone who has the time to reply,
yours very confused,
Paul Morris,
Dept. of Atmospheric Physics,
University of Oxford,
England
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: VAX to VAX binary ftp !!!!!!!!!!!
1993-02-22 15:54 VAX to VAX binary ftp !!!!!!!!!!! atmos
@ 1993-02-23 2:27 ` oberman
1993-02-23 13:08 ` Steve McKinty - Sun ICNC
1993-02-23 23:05 ` Bernhard Fabricius
2 siblings, 0 replies; 5+ messages in thread
From: oberman @ 1993-02-23 2:27 UTC (permalink / raw)
>From: atmos@vax.oxford.ac.uk
>Subj: VAX to VAX binary ftp !!!!!!!!!!!
>Date: 22 Feb 93 15:54:12 GMT
>
>
>I was wondering if someone could help with a VAX to VAX FTP transfer that I
>currently can't get to work.
>
>I have a binary file on SITE_1 which I would like to FTP to SITE_2 using a
>binary FTP transfer.
The assumption made in binary mode is that the file is a byte stream
(Unix-like) and the output is created accordingly. Decent TCP/IP
implementations make use of the STRUCTURE VMS option which will transfer teh
file correctly in all cases between VMS systems. (Note: UCX did not support
this last I looked.)
>Now I had hoped to use the DECUS program
>
>ATTRIBUTE/RATTRIB=IMPLIED/RTYPE=VARIABLE TEST.BINARY
>
>to fix the file attributes back again. But even after doing this the binary file
>is still unreadale. Is there anything else I have to do to make it work?
>Many thanks to anyone who has the time to reply,
>
>yours very confused,
No, converting the stream to the correct type with attribute will do no good.
The relevent records information is lost already. There is no reasonable way to
recover it. If a transfer of the file without the "binary" also fails, you are
stuck with "ASCIIfying" the file in some manner. Several VMS utilities such as
MFTU and ZIP will do the job. I think they are available from FTP.SPC.EDU in
the [.MACRO32.SAVESETS] directory.
R. Kevin Oberman Lawrence Livermore National Laboratory
Internet: koberman@llnl.gov (510) 422-6955
Disclaimer: Don't take this too seriously. I just like to improve my typing
and probably don't really know anything useful about anything.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: VAX to VAX binary ftp !!!!!!!!!!!
1993-02-22 15:54 VAX to VAX binary ftp !!!!!!!!!!! atmos
1993-02-23 2:27 ` oberman
@ 1993-02-23 13:08 ` Steve McKinty - Sun ICNC
1993-02-23 23:05 ` Bernhard Fabricius
2 siblings, 0 replies; 5+ messages in thread
From: Steve McKinty - Sun ICNC @ 1993-02-23 13:08 UTC (permalink / raw)
In article <1993Feb22.155412.12180@vax.oxford.ac.uk>, atmos@vax.oxford.ac.uk writes:
>
> I was wondering if someone could help with a VAX to VAX FTP transfer that I
> currently can't get to work.
>
> I have a binary file on SITE_1 which I would like to FTP to SITE_2 using a
> binary FTP transfer.
This is a guess, but have you tried _not_ using Binary mode? The attributes
of the imput file
> Record format: Variable length
> Record attributes: Carriage return carriage control
> RMS attributes: None
don't look like those of a binary file, at least not as VMS would understand
it. Provided FTP doesn't monkey about with the data in each record a simple
non-binary FTP should work.
I assume its the binary setting which is causing FTP to create the output
file as
> Record format: Fixed length 512 byte records
> Record attributes: None
> RMS attributes: None
which is the way VMS would see a binary file.
Steve
--
Steve McKinty
SUN Microsystems ICNC
38240 Meylan, France
email: smckinty@france.sun.com BIX: smckinty
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: VAX to VAX binary ftp !!!!!!!!!!!
1993-02-22 15:54 VAX to VAX binary ftp !!!!!!!!!!! atmos
1993-02-23 2:27 ` oberman
1993-02-23 13:08 ` Steve McKinty - Sun ICNC
@ 1993-02-23 23:05 ` Bernhard Fabricius
1993-02-24 11:04 ` Per Steinar Iversen
2 siblings, 1 reply; 5+ messages in thread
From: Bernhard Fabricius @ 1993-02-23 23:05 UTC (permalink / raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2078 bytes --]
In article <1993Feb22.155412.12180@vax.oxford.ac.uk>, atmos@vax.oxford.ac.uk writes:
>
>I was wondering if someone could help with a VAX to VAX FTP transfer that I
>currently can't get to work.
>
>I have a binary file on SITE_1 which I would like to FTP to SITE_2 using a
>binary FTP transfer.
>The file attributes of the original file are
[Stuff deleted]
>but by the time it reaches SITE_2 the file attributes are
[Stuff deleted]
>Now I had hoped to use the DECUS program
>ATTRIBUTE/RATTRIB=IMPLIED/RTYPE=VARIABLE TEST.BINARY
>to fix the file attributes back again. But even after doing this the binary
>file is still unreadale. Is there anything else I have to do to make it work?
>Many thanks to anyone who has the time to reply,
Paul,
"binary" FTP transfers is a bit of a sticky point unless you have a
TCP/IP product that supports the STRU VMS instruction which transfers the VMS
file structure as well. "Binary" mode only really works for fixed length
records, and only if the fixed lenght is 512 bytes are you able to use the file
right away.
But don't despair! What you should do is to backup your file into a VMS
Saveset:
$ BACKUP TEST.BINARY TEST.BCK/SAVE
Next you transfer this saveset in BINARY mode, and on arrival at the other end,
you use the DECUS program to set the record length back to the 32256 bytes used
by backup to disk. Finally, you simply unfold your saveset:
$ BACKUP TEST.BCK/SAVE []
and you're done! In this way, you can transfer any number of files in any of
RMS's sm�rg�sbord of formats. ("smorgasbord" in case you don't have an 8-bit
news-reader..._
Cheers
Bernhard
--------------------------------------------------------------------------------
Dr Bernhard Fabricius |
Academic VAX/VMS Support | "I am a Bear of Very Little Brain,
Department of Nuclear Physics | and long words Bother me."
Australian National University |
| - A.A. Milne
InterNet: BEAR@NUC.ANU.EDU.AU |
POSTMASTER@NUC.ANU.EDU.AU |
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: VAX to VAX binary ftp !!!!!!!!!!!
1993-02-23 23:05 ` Bernhard Fabricius
@ 1993-02-24 11:04 ` Per Steinar Iversen
0 siblings, 0 replies; 5+ messages in thread
From: Per Steinar Iversen @ 1993-02-24 11:04 UTC (permalink / raw)
In article <1meajoINNmte@manuel.anu.edu.au>, bear@nuc.anu.edu.au (Bernhard Fabricius) writes:
>In article <1993Feb22.155412.12180@vax.oxford.ac.uk>, atmos@vax.oxford.ac.uk writes:
>>
>>I was wondering if someone could help with a VAX to VAX FTP transfer that I
>>currently can't get to work.
>>
>>I have a binary file on SITE_1 which I would like to FTP to SITE_2 using a
>>binary FTP transfer.
>
>>The file attributes of the original file are
>[Stuff deleted]
>
>>but by the time it reaches SITE_2 the file attributes are
>[Stuff deleted]
>
>>Now I had hoped to use the DECUS program
>>ATTRIBUTE/RATTRIB=IMPLIED/RTYPE=VARIABLE TEST.BINARY
>>to fix the file attributes back again. But even after doing this the binary
>>file is still unreadale. Is there anything else I have to do to make it work?
>>Many thanks to anyone who has the time to reply,
>
>Paul,
> "binary" FTP transfers is a bit of a sticky point unless you have a
>TCP/IP product that supports the STRU VMS instruction which transfers the VMS
>file structure as well. "Binary" mode only really works for fixed length
>records, and only if the fixed lenght is 512 bytes are you able to use the file
>right away.
>
> But don't despair! What you should do is to backup your file into a VMS
>Saveset:
>
> $ BACKUP TEST.BINARY TEST.BCK/SAVE
>
>Next you transfer this saveset in BINARY mode, and on arrival at the other end,
>you use the DECUS program to set the record length back to the 32256 bytes used
>by backup to disk. Finally, you simply unfold your saveset:
>
> $ BACKUP TEST.BCK/SAVE []
>
>and you're done! In this way, you can transfer any number of files in any of
>RMS's smvrgesbord of formats. ("smorgasbord" in case you don't have an 8-bit
>news-reader..._
>
>
>Cheers
>
>
>Bernhard
>--------------------------------------------------------------------------------
>Dr Bernhard Fabricius |
>Academic VAX/VMS Support | "I am a Bear of Very Little Brain,
>Department of Nuclear Physics | and long words Bother me."
>Australian National University |
> | - A.A. Milne
>InterNet: BEAR@NUC.ANU.EDU.AU |
> POSTMASTER@NUC.ANU.EDU.AU |
>
>
There is an alternative, sometimes a backup save_set + the original files may
may be bigger than the disk quota or even the total space available on disk.
In that case one can use FILE, a very nice public domain program. From the
HELP file:
FILE
Examples
One common use of FILE, is to 'coerce' a file into being a
Fixed 512 byte file, to upload/download the file via kermit.
For example, given a saveset A.SAV, you could do the following:
$ FILE/OUTPUT=A.FIX A.SAV/RECORD_SIZE=512/TYPE=FIXED
You could then transfer the two files A.FIX and A.SAV
using Kermit (it would take two transfers, A.FIX with 'set file
type text', and A.SAV using 'set file type fixed')
To turn the file back into its original useable self, you
could then do:
@A.FIX
This would cause the originally saved characteristics to be put
back on the file.
Another common use is to set the Fortran carriage control
attribute so that a file can be printed with fortran carriage
control, this can be done as follows:
$ FILE/OUTPUT=OLD.TMP NETMONTH.* -
_$ /ATTRIBUTES=(FORTRANCC,NOIMPLIEDCC,NOPRINTCC)
There are obviously other uses for FILE too. The programs FIND and VERB by the
same author are also worth picking up as general tools.
-psi
+------------------------------------------------------------------------------+
! Per Steinar Iversen ! Internet: iversen@vsfys1.fi.uib.no !
! Fysisk Institutt ! BITnet: iversen@cernvm.bitnet !
! Universitetet i Bergen ! HEPnet: VSFYS::IVERSEN (VSFYS=21.341=21845) !
! Allegaten 55 ! Phone: +47 5212770 !
! N-5007 Bergen ! Fax: +47 5318334 !
! NORWAY ! !
+------------------------------------------------------------------------------+
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~1993-02-24 11:04 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1993-02-22 15:54 VAX to VAX binary ftp !!!!!!!!!!! atmos
1993-02-23 2:27 ` oberman
1993-02-23 13:08 ` Steve McKinty - Sun ICNC
1993-02-23 23:05 ` Bernhard Fabricius
1993-02-24 11:04 ` Per Steinar Iversen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox