From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 22701 invoked from network); 26 Jun 2023 23:09:54 -0000 Received: from minnie.tuhs.org (2600:3c01:e000:146::1) by inbox.vuxu.org with ESMTPUTF8; 26 Jun 2023 23:09:54 -0000 Received: from minnie.tuhs.org (localhost [IPv6:::1]) by minnie.tuhs.org (Postfix) with ESMTP id 020F340BDE; Tue, 27 Jun 2023 09:09:52 +1000 (AEST) Received: from lists.tip.net.au (pasta.tip.net.au [203.10.76.2]) by minnie.tuhs.org (Postfix) with ESMTPS id CCBBC40BBE for ; Tue, 27 Jun 2023 09:09:40 +1000 (AEST) Received: from [192.168.1.5] (ppp118-208-161-109.cbr-trn-nor-bras39.tpg.internode.on.net [118.208.161.109]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mailhost.tip.net.au (Postfix) with ESMTPSA id 4Qqk7k3CYzz9Qrf; Tue, 27 Jun 2023 09:09:37 +1000 (AEST) From: steve jenkin Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.21\)) Date: Tue, 27 Jun 2023 09:09:36 +1000 Message-Id: To: COFF X-Mailer: Apple Mail (2.3445.104.21) Message-ID-Hash: THPZHJSIGE4ZMXTKN4UXDEFGSBEBEFWR X-Message-ID-Hash: THPZHJSIGE4ZMXTKN4UXDEFGSBEBEFWR X-MailFrom: sjenkin@canb.auug.org.au X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.6b1 Precedence: list Subject: [COFF] Shell script advice: using 'dd' to write multiple media List-Id: Computer Old Farts Forum Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Apropos the ESIX SVR4 distro on floppies or streaming tape mentioned by = Bill Corcoran = In the mid 1980=E2=80=99s I worked for a small Australian outfit that = did =E2=80=9CUnix=E2=80=9D. One of the things we did was distributing software, which required = writing to many media. There was a very clever script that broke the distribution into many = parts, if needed, to suit the size of the distribution media. [ tape, 3.5=E2=80=9D floppy, = 2.5=E2=80=9D floppy, etc ] Over the years I=E2=80=99ve tried to recreate a version and not = succeeded :( There was a =E2=80=98create the distro=E2=80=99 step of the pipeline = which gathered the input, followed by a loop that used =E2=80=98dd=E2=80=99 to block the stream = into media-sized parts. I=E2=80=99ve never figured out how to use =E2=80=98dd=E2=80=99 so it = returns after a single block is written doesn=E2=80=99t close the input, killing the pipeline, or cause the rest = of the data to be discarded. The script let our admin staff reliably create distros on whatever media = was requested. Any suggestions or hints? I=E2=80=99m thinking this is obvious, but in the man pages i=E2=80=99ve = read, not found an answer. It could be modern versions of =E2=80=98dd=E2=80=99 don=E2=80=99t have = this behaviour. cheers steve -- Steve Jenkin, IT Systems and Design=20 0412 786 915 (+61 412 786 915) PO Box 38, Kippax ACT 2615, AUSTRALIA mailto:sjenkin@canb.auug.org.au http://members.tip.net.au/~sjenkin