Re: Are We Back to the "Wars" Now ?

Liste des GroupesRevenir à col misc 
Sujet : Re: Are We Back to the "Wars" Now ?
De : robin_listas (at) *nospam* es.invalid (Carlos E.R.)
Groupes : comp.os.linux.misc
Date : 24. Nov 2024, 00:11:48
Autres entêtes
Message-ID : <k24a1lx7l4.ln2@Telcontar.valinor>
References : 1 2 3 4 5 6 7 8 9 10 11
User-Agent : Mozilla Thunderbird
On 2024-11-23 22:32, Fritz Wuehler wrote:
Carlos E.R. <robin_lis...@es.invalid> [CE]:
CE> I dd a hard disk partition, compress it, and at the same time
CE> calculate a checksum.
CE>
CE>     mkfifo mdpipe
CE>     dd if=/dev/$1  status=progress  bs=16M | tee mdpipe | pigz -3 > $3.gz &
CE>     md5sum -b mdpipe | tee -a md5checksum_expanded
CE>     wait
CE>     rm mdpipe
CE>     echo "$3" >> md5checksum_expanded
  David B Rosen has written the tpipe(1) utility for exactly such cases:
 The above steps can be rewritten in a much cleaner way as:
    dd if=/dev/$1  status=progress  bs=16M |
   tpipe "md5sum -b >> md5checksum_expanded" |
   pigz -3 > $3.gz
  If tpipe is not available on your system,
it is not.
Telcontar:~ # tpipe
If 'tpipe' is not a typo you can use command-not-found to lookup the package that contains it, like this:
     cnf tpipe
Telcontar:~ # cnf tpipe
  tpipe: command not found
Telcontar:~ # opi tpipe
Searching repos for: tpipe
1. inputpipe
2. socketpipe
3. inputpipe-debuginfo
4. socketpipe-debuginfo
5. inputpipe-debugsource
6. socketpipe-debugsource
Pick a number (0 to quit): 0
Telcontar:~ #

you can always use the shell's
process substitution feature instead:
    dd if=/dev/$1  status=progress  bs=16M |
   tee >(md5sum -b >> md5checksum_expanded) \
       >(pigz -3 > $3.gz) \
       >/dev/null
 
I like my way, it is mine :-)
--
Cheers, Carlos.

Date Sujet#  Auteur
18 Nov 24 * Are We Back to the "Wars" Now ?76186282@ud0s4.net
18 Nov 24 +* Re: Are We Back to the "Wars" Now ?3D
20 Nov 24 i`* Re: Are We Back to the "Wars" Now ?2186282@ud0s4.net
20 Nov 24 i `- Re: Are We Back to the "Wars" Now ?1D
18 Nov 24 +- Re: Are We Back to the "Wars" Now ?1Pancho
18 Nov 24 +- Re: Are We Back to the "Wars" Now ?1Richard Kettlewell
18 Nov 24 +* Re: Are We Back to the "Wars" Now ?48Rich
18 Nov 24 i`* Re: Are We Back to the "Wars" Now ?47Phillip Frabott
20 Nov 24 i `* Re: Are We Back to the "Wars" Now ?46Lawrence D'Oliveiro
21 Nov 24 i  `* Re: Are We Back to the "Wars" Now ?45Phillip Frabott
21 Nov 24 i   `* Re: Are We Back to the "Wars" Now ?44Lawrence D'Oliveiro
21 Nov 24 i    `* Re: Are We Back to the "Wars" Now ?43Phillip Frabott
21 Nov 24 i     +* Re: Are We Back to the "Wars" Now ?20Richard Kettlewell
22 Nov 24 i     i`* Re: Are We Back to the "Wars" Now ?19Phillip Frabott
22 Nov 24 i     i +* Re: Are We Back to the "Wars" Now ?17Lawrence D'Oliveiro
22 Nov 24 i     i i`* Re: Are We Back to the "Wars" Now ?16vallor
22 Nov 24 i     i i +* Re: Are We Back to the "Wars" Now ?10Lawrence D'Oliveiro
22 Nov 24 i     i i i`* Re: Are We Back to the "Wars" Now ?9vallor
22 Nov 24 i     i i i `* Named pipes vs. Unix sockets (was: Re: Are We Back to the "Wars" Now ?)8vallor
22 Nov 24 i     i i i  `* Re: Named pipes vs. Unix sockets7vallor
22 Nov 24 i     i i i   +- Re: Named pipes vs. Unix sockets1Lawrence D'Oliveiro
22 Nov 24 i     i i i   `* Re: Named pipes vs. Unix sockets5Phillip Frabott
22 Nov 24 i     i i i    +* Re: Named pipes vs. Unix sockets3Lawrence D'Oliveiro
23 Nov 24 i     i i i    i`* Re: Named pipes vs. Unix sockets2Phillip Frabott
23 Nov 24 i     i i i    i `- Re: Named pipes vs. Unix sockets1Lawrence D'Oliveiro
3 Dec 24 i     i i i    `- Re: Named pipes vs. Unix sockets1Lawrence D'Oliveiro
22 Nov 24 i     i i `* Re: Are We Back to the "Wars" Now ?5Rich
23 Nov 24 i     i i  +* Re: Are We Back to the "Wars" Now ?3vallor
23 Nov 24 i     i i  i+- Re: Are We Back to the "Wars" Now ?1Rich
23 Nov 24 i     i i  i`- Re: Are We Back to the "Wars" Now ?1Lawrence D'Oliveiro
26 Nov 24 i     i i  `- Pipes v. FIFOs (was: Are We Back to the "Wars" Now ?)1Geoff Clare
22 Nov 24 i     i `- Re: Are We Back to the "Wars" Now ?1Richard Kettlewell
21 Nov 24 i     `* Re: Are We Back to the "Wars" Now ?22Lawrence D'Oliveiro
22 Nov 24 i      `* Re: Are We Back to the "Wars" Now ?21186282@ud0s4.net
22 Nov 24 i       `* Re: Are We Back to the "Wars" Now ?20Lawrence D'Oliveiro
23 Nov 24 i        `* Re: Are We Back to the "Wars" Now ?19186282@ud0s4.net
23 Nov 24 i         `* Re: Are We Back to the "Wars" Now ?18Lawrence D'Oliveiro
23 Nov 24 i          `* Re: Are We Back to the "Wars" Now ?17186282@ud0s4.net
23 Nov 24 i           +* Re: Are We Back to the "Wars" Now ?6Lawrence D'Oliveiro
23 Nov 24 i           i`* Re: Are We Back to the "Wars" Now ?5Carlos E.R.
23 Nov 24 i           i +* Re: Are We Back to the "Wars" Now ?2Fritz Wuehler
24 Nov 24 i           i i`- Re: Are We Back to the "Wars" Now ?1Carlos E.R.
24 Nov 24 i           i `* Re: Are We Back to the "Wars" Now ?2Lawrence D'Oliveiro
24 Nov 24 i           i  `- Re: Are We Back to the "Wars" Now ?1Carlos E.R.
23 Nov 24 i           `* Re: Are We Back to the "Wars" Now ?10The Natural Philosopher
23 Nov 24 i            `* Re: Are We Back to the "Wars" Now ?9Lawrence D'Oliveiro
24 Nov 24 i             `* Re: Are We Back to the "Wars" Now ?8186282@ud0s4.net
24 Nov 24 i              +- Re: Are We Back to the "Wars" Now ?1Lawrence D'Oliveiro
24 Nov 24 i              `* Re: Are We Back to the "Wars" Now ?6Rich
24 Nov 24 i               `* Re: Are We Back to the "Wars" Now ?5Lew Pitcher
24 Nov 24 i                +- Re: Are We Back to the "Wars" Now ?1Rich
24 Nov 24 i                `* Re: Are We Back to the "Wars" Now ?3Richard Kettlewell
24 Nov 24 i                 +- Re: Are We Back to the "Wars" Now ?1Carlos E.R.
24 Nov 24 i                 `- Re: Are We Back to the "Wars" Now ?1Rich
20 Nov 24 `* Re: Are We Back to the "Wars" Now ?22Lawrence D'Oliveiro
3 Dec 24  `* Re: Are We Back to the "Wars" Now ?21186282@ud0s4.net
3 Dec 24   +* Re: Are We Back to the "Wars" Now ?3Lawrence D'Oliveiro
4 Dec 24   i`* Re: Are We Back to the "Wars" Now ?2186282@ud0s4.net
4 Dec 24   i `- Re: Are We Back to the "Wars" Now ?1Lawrence D'Oliveiro
14 Dec 24   `* Re: Are We Back to the "Wars" Now ?17Pancho
14 Dec 24    `* Re: Are We Back to the "Wars" Now ?16root
14 Dec 24     `* Re: Are We Back to the "Wars" Now ?15The Natural Philosopher
17 Dec14:34      `* Re: Are We Back to the "Wars" Now ?14Geoff Clare
18 Dec02:23       `* Re: Are We Back to the "Wars" Now ?13Lawrence D'Oliveiro
18 Dec05:25        `* Re: Are We Back to the "Wars" Now ?12186282@ud0s4.net
18 Dec06:01         `* Re: Are We Back to the "Wars" Now ?11Rich
18 Dec06:12          +* Re: Are We Back to the "Wars" Now ?5Robert Riches
18 Dec15:03          i`* Re: Are We Back to the "Wars" Now ?4Rich
19 Dec05:27          i `* Re: Are We Back to the "Wars" Now ?3Robert Riches
19 Dec15:07          i  `* Re: Are We Back to the "Wars" Now ?2Rich
19 Dec16:02          i   `- Re: Are We Back to the "Wars" Now ?1D
18 Dec09:27          `* Re: Are We Back to the "Wars" Now ?5Richard Kettlewell
18 Dec15:02           `* Re: Are We Back to the "Wars" Now ?4Rich
18 Dec17:11            `* Re: Are We Back to the "Wars" Now ?3John Ames
18 Dec17:51             +- Re: Are We Back to the "Wars" Now ?1Rich
18 Dec19:32             `- Re: Are We Back to the "Wars" Now ?1Richard Kettlewell

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal