[Info-vax] ZIP SYS$INPUT
Wilm Boerhout
w6.boerhout at planet.nl
Sat Dec 5 13:04:48 EST 2009
Steven Schweda mentioned on 5-12-2009 17:01:
> Wilm Boerhout wrote:
>
>> [...]
>> $ define /user SYS$INPUT SYS$NET
>> $ zip "-Vv" REMOTE.ZIP "-"
>>
>> but apparently, ZIP was not designed to accomodate this.
>> [...]
>
> That's an understatement. I haven't actually looked at
> what's happening here, but it seems like a safe bet that,
> whatever Zip does to get file attributes for "-V", it's
> unlikely to work properly for a pipe. Omitting "-V" may not
> help much, but including it seems to me to be hopeless.
Of course. When doing VMS zips, I always add "-V" without thinking,
because that is what I need most of the time.
Removing the "-V" brings the remote zipper process to an end without
errors. I wind up with an archive that unzip sees as:
$ unz -v remote
Get RMS defaults. getjpi sts = %x00000001.
Default: deq = 0, mbc = 0, mbf = 0.
Open callback. ID = 1, deq = 16384, mbc = 127, mbf = 2.
Archive: SYS$SYSROOT:[SYSMGR]REMOTE.ZIP;1
Length Method Size Ratio Date Time CRC-32 Name
-------- ------ ------- ----- ---- ---- ------ ----
1272429 Stored 1272429 0% 01-01-80 00:00 a643f122 -
-------- ------- --- -------
1272429 1272429 0% 1 file
Now my saveset is called "-", how to extract it with a proper VMS name?
The saveset attributes may be fixed afterwards with the usual tweak I
hope. And "stored"? Hmm. The actual backup command at the sending end was
$ blocks = 4
$ bytes = 512*blocks
$ set rms /net='blocks
$ backup *.COM 0::"task=ZIPPER" /sav /block_size='bytes
Just a bunch of command files from SYS$MANAGER. When I zip 'm locally I get:
$ bac *.com local.bck /sav
$ zip -v local local.bck
adding: LOCAL.BCK (in=999936) (out=320889) (deflated 68%)
total bytes=999936, compressed=320889 -> 68% savings
$ unz -v local
Get RMS defaults. getjpi sts = %x00000001.
Default: deq = 0, mbc = 0, mbf = 0.
Open callback. ID = 1, deq = 16384, mbc = 127, mbf = 2.
Archive: SYS$SYSROOT:[SYSMGR]LOCAL.ZIP;1
Length Method Size Ratio Date Time CRC-32 Name
-------- ------ ------- ----- ---- ---- ------ ----
999936 Defl:N 320889 68% 12-05-09 19:03 f94a9eaf local.bck
-------- ------- --- -------
999936 320889 68% 1 file
/Wilm
More information about the Info-vax
mailing list