[Info-vax] ZIP SYS$INPUT
Syltrem
syltremzulu at videotron.ca
Fri Dec 4 13:19:20 EST 2009
"Steven Schweda" <sms.antinode at gmail.com> a écrit dans le message de news:
506ae7e4-0086-4a6a-942f-af9f80453f74 at u7g2000yqm.googlegroups.com...
> Syltrem wrote:
>
>> Is there a way to have ZIP use SYS$INPUT (or SYS$NET) as input ?
>>
>> $ zip f.zip sys$input:
>> zip warning: name not matched: sys$input:
>>
>> zip error: Nothing to do! (DGSI_A1:[TREMBLAY.STMEP.HERABKP]F.ZIP;)
>
> alp $ pipe type [-]BMT.C | zip bmt_c2.zip "-"
> adding: - (deflated 51%)
I know about this, but it cannot work with BACKUP which will not write a
saveset to SYS$OUTPUT
And thinking about it,
$ pipe type [-]BMT.C | zip bmt_c2.zip "-"
will actually create a file SYS$PIPE containing the *entire* result of the
TYPE command, before ZIP starts processing it.
I don't think ZIP is able to work with a stream of data (record by record);
it works on the entire file. This would explain why it can't use SYS$INPUT
as a source (it would need to store it somewhere until it reaches ^Z, and
then process it).
And that's probably how PIPE works too, it does each command sequentially so
would have to complete the BACKUP before starting the ZIP.
That's why I tought to use a DESnet task, and feed the SYS$NET into ZIP but
it doesn't work.
I need a way to compress records one by one as they come (in SYS$NET)
Syltrem
More information about the Info-vax
mailing list