From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10b612,bf3f2c1f3c0f503d X-Google-Attributes: gid10b612,public X-Google-Thread: 1164f8,bf3f2c1f3c0f503d X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1994-08-09 18:18:06 PST Path: bga.com!news.sprintlink.net!hookup!swrinde!howland.reston.ans.net!europa.eng.gtefsd.com!MathWorks.Com!news.duke.edu!convex!bcm!usenet From: dan@dna.neusc.bcm.tmc.edu Newsgroups: comp.sys.dec,comp.unix.ultrix Subject: Re: Getting dd to pad the *last* output block Date: 10 Aug 1994 00:53:28 GMT Organization: Baylor College of Medicine Message-ID: <3298e8$bt0@gazette.bcm.tmc.edu> References: Reply-To: dan@dna.neusc.bcm.tmc.edu NNTP-Posting-Host: dnp.neusc.bcm.tmc.edu X-Newsreader: IBM NewsReader/2 v1.02 Xref: bga.com comp.sys.dec:4997 comp.unix.ultrix:2754 In , 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 I would have thought this would work, but I guess there is a comflict between obs= and conv=sync. If you made obs=2k or something, perhaps compress < xc-1.tar | dd obs=2k | dd bs=2k conv=sync of=/dev/nrmt1l would work. However, with the amount of time you have aprrently spent on this, you could just write the half page C program to do the job. Cheers, Dan Ts'o 713-798-3331 Div. Neuroscience FAX: 713-798-3897 Baylor College of Medicine 1 Baylor Plaza S553 dan@dna.neusc.bcm.tmc.edu Houston, TX 77030 tso@cephalo.neusc.bcm.tmc.edu