From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,bf3f2c1f3c0f503d X-Google-Attributes: gid1164f8,public X-Google-Thread: 10b612,bf3f2c1f3c0f503d X-Google-Attributes: gid10b612,public X-Google-ArrivalTime: 1994-08-10 17:20:33 PST Path: bga.com!news.sprintlink.net!hookup!swrinde!howland.reston.ans.net!math.ohio-state.edu!jussieu.fr!centre.univ-orleans.fr!univ-lyon1.fr!swidir.switch.ch!scsing.switch.ch!elna.ethz.ch!karrer From: karrer@bernina.ethz.ch (Andreas Karrer) Newsgroups: comp.sys.dec,comp.unix.ultrix Subject: Re: Getting dd to pad the *last* output block Date: 10 Aug 1994 13:32:14 GMT Organization: Swiss Federal Institute of Technology (ETHZ) Message-ID: <32aksu$s80@elna.ethz.ch> References: NNTP-Posting-Host: bernina.ethz.ch Xref: bga.com comp.sys.dec:5014 comp.unix.ultrix:2765 jw@adasoft.ch (Jamie Watson) writes: >Does anyone know how to get the Ultrix "dd" to pad the last output block >to whatever the specified block size is, when reading from stdin? I know >this sounds like a strange problem, and probably sounds more like user >error than anything else, but I have been fighting with this for a very >long time (several years, in fact), and I still can't get it to do what >I want. The kind of command line I am talking about is this: > compress < xc-1.tar | dd obs=10k conv=sync of=/dev/nrmt1l use "buffer -B" instead of dd. version 1.17 is on ftp.ethz.ch:pub/src, i'm not sure if Lee McLoughlin of Imperial College has published a newer version. If you have to deal with devices like a TK-50, buffer is a win anyway. should work on any machine that supporst sysv shared memory and semaphores; it certainly works on ultrix/sunos/solaris; not sure about DEC-OSF/1. +----------- Andi Karrer, Institute for Electronics, ETH Zuerich, Switzerland karrer@bernina.ethz.ch - CH stands for Calvin & Hobbs, the most influential Swiss religion <2n04i5$44j@hebron.connected.com>