Re: How to pipe output from export into gzip?

From: mark rostron <markro2_at_frmail.rosemount.com>
Date: 1996/01/06
Message-ID: <1996Jan6.050335.29358_at_rosevax.rosemount.com>#1/1


Try a named pipe (man mknod), invoke compress with stdin redirected to the named pipe, invoke exp using the pipe name as the name of your export file.

Unless your machine is a multiprocessor, you may not gain much by doing this because cpu contention could occur.

You should also be careful about the export buffer size. Check man for the min/max size of fifos (maybe man 2 read/write) - in the text book definition, a fifo uses only the direct blocks of an inode, which means that for a machine with 10 direct blocks per inode and a 1K block size, the maximum size is 10K which is then the optimum export buffer.

To import, do it in reverse - use zcat to uncompress/cat the file to the pipe and run import with the pipe as the import file.

mr Received on Sat Jan 06 1996 - 00:00:00 CET

Original text of this message