Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.misc > #61290

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

From "Carlos E.R." <robin_listas@es.invalid>
Newsgroups comp.os.linux.misc
Subject Re: Are We Back to the "Wars" Now ?
Date 2024-11-24 00:11 +0100
Message-ID <k24a1lx7l4.ln2@Telcontar.valinor> (permalink)
References (6 earlier) <vhrolujata@dont-email.me> <Oo6dnZb3z-NT6Nz6nZ2dnZfqnPednZ2d@earthlink.com> <vhs0vsk6ft@dont-email.me> <sh291lxvc7.ln2@Telcontar.valinor> <8dd3cea92696338fe22c059158645628@msgid.frell.theremailer.net>

Show all headers | View raw


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.

Back to comp.os.linux.misc | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Are We Back to the "Wars" Now ? "186282@ud0s4.net" <186283@ud0s4.net> - 2024-11-18 01:20 -0500
  Re: Are We Back to the "Wars" Now ? D <nospam@example.net> - 2024-11-18 10:13 +0100
    Re: Are We Back to the "Wars" Now ? "186282@ud0s4.net" <186283@ud0s4.net> - 2024-11-19 21:57 -0500
      Re: Are We Back to the "Wars" Now ? D <nospam@example.net> - 2024-11-20 10:01 +0100
  Re: Are We Back to the "Wars" Now ? Pancho <Pancho.Jones@proton.me> - 2024-11-18 09:27 +0000
  Re: Are We Back to the "Wars" Now ? Richard Kettlewell <invalid@invalid.invalid> - 2024-11-18 09:54 +0000
  Re: Are We Back to the "Wars" Now ? Rich <rich@example.invalid> - 2024-11-18 10:46 +0000
    Re: Are We Back to the "Wars" Now ? Phillip Frabott <nntp@fulltermprivacy.com> - 2024-11-18 09:45 -0500
      Re: Are We Back to the "Wars" Now ? Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-11-20 00:23 +0000
        Re: Are We Back to the "Wars" Now ? Phillip Frabott <nntp@fulltermprivacy.com> - 2024-11-21 02:05 -0500
          Re: Are We Back to the "Wars" Now ? Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-11-21 07:22 +0000
            Re: Are We Back to the "Wars" Now ? Phillip Frabott <nntp@fulltermprivacy.com> - 2024-11-21 10:12 -0500
              Re: Are We Back to the "Wars" Now ? Richard Kettlewell <invalid@invalid.invalid> - 2024-11-21 18:38 +0000
                Re: Are We Back to the "Wars" Now ? Phillip Frabott <nntp@fulltermprivacy.com> - 2024-11-21 21:55 -0500
                Re: Are We Back to the "Wars" Now ? Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-11-22 03:12 +0000
                Re: Are We Back to the "Wars" Now ? vallor <vallor@cultnix.org> - 2024-11-22 06:09 +0000
                Re: Are We Back to the "Wars" Now ? Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-11-22 06:37 +0000
                Re: Are We Back to the "Wars" Now ? vallor <vallor@cultnix.org> - 2024-11-22 07:02 +0000
                Named pipes vs. Unix sockets (was: Re: Are We Back to the "Wars" Now ?) vallor <vallor@cultnix.org> - 2024-11-22 07:29 +0000
                Re: Named pipes vs. Unix sockets vallor <vallor@cultnix.org> - 2024-11-22 08:38 +0000
                Re: Named pipes vs. Unix sockets Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-11-22 09:37 +0000
                Re: Named pipes vs. Unix sockets Phillip Frabott <nntp@fulltermprivacy.com> - 2024-11-22 10:00 -0500
                Re: Named pipes vs. Unix sockets Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-11-22 20:52 +0000
                Re: Named pipes vs. Unix sockets Phillip Frabott <nntp@fulltermprivacy.com> - 2024-11-22 17:06 -0500
                Re: Named pipes vs. Unix sockets Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-11-23 00:42 +0000
                Re: Named pipes vs. Unix sockets rlhamil@smart.net (Richard L. Hamilton) - 2024-12-03 05:23 +0000
                Re: Named pipes vs. Unix sockets Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-12-03 06:20 +0000
                Re: Are We Back to the "Wars" Now ? Rich <rich@example.invalid> - 2024-11-22 19:11 +0000
                Re: Are We Back to the "Wars" Now ? vallor <vallor@cultnix.org> - 2024-11-23 03:25 +0000
                Re: Are We Back to the "Wars" Now ? Rich <rich@example.invalid> - 2024-11-23 04:28 +0000
                Re: Are We Back to the "Wars" Now ? Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-11-23 04:50 +0000
                Pipes v. FIFOs (was: Are We Back to the "Wars" Now ?) Geoff Clare <geoff@clare.See-My-Signature.invalid> - 2024-11-26 14:21 +0000
                Re: Are We Back to the "Wars" Now ? Richard Kettlewell <invalid@invalid.invalid> - 2024-11-22 10:04 +0000
              Re: Are We Back to the "Wars" Now ? Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-11-21 21:56 +0000
                Re: Are We Back to the "Wars" Now ? "186282@ud0s4.net" <186283@ud0s4.net> - 2024-11-22 01:44 -0500
                Re: Are We Back to the "Wars" Now ? Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-11-22 06:49 +0000
                Re: Are We Back to the "Wars" Now ? "186282@ud0s4.net" <186283@ud0s4.net> - 2024-11-22 23:44 -0500
                Re: Are We Back to the "Wars" Now ? Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-11-23 05:19 +0000
                Re: Are We Back to the "Wars" Now ? "186282@ud0s4.net" <186283@ud0s4.net> - 2024-11-23 01:27 -0500
                Re: Are We Back to the "Wars" Now ? Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-11-23 07:41 +0000
                Re: Are We Back to the "Wars" Now ? "Carlos E.R." <robin_listas@es.invalid> - 2024-11-23 14:39 +0100
                Re: Are We Back to the "Wars" Now ? Fritz Wuehler <fritz@spamexpire-202411.rodent.frell.theremailer.net> - 2024-11-23 22:32 +0100
                Re: Are We Back to the "Wars" Now ? "Carlos E.R." <robin_listas@es.invalid> - 2024-11-24 00:11 +0100
                Re: Are We Back to the "Wars" Now ? Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-11-23 22:04 +0000
                Re: Are We Back to the "Wars" Now ? "Carlos E.R." <robin_listas@es.invalid> - 2024-11-24 00:11 +0100
                Re: Are We Back to the "Wars" Now ? The Natural Philosopher <tnp@invalid.invalid> - 2024-11-23 11:12 +0000
                Re: Are We Back to the "Wars" Now ? Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-11-23 21:25 +0000
                Re: Are We Back to the "Wars" Now ? "186282@ud0s4.net" <186283@ud0s4.net> - 2024-11-23 19:42 -0500
                Re: Are We Back to the "Wars" Now ? Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-11-24 02:03 +0000
                Re: Are We Back to the "Wars" Now ? Rich <rich@example.invalid> - 2024-11-24 14:25 +0000
                Re: Are We Back to the "Wars" Now ? Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2024-11-24 15:48 +0000
                Re: Are We Back to the "Wars" Now ? Rich <rich@example.invalid> - 2024-11-24 16:56 +0000
                Re: Are We Back to the "Wars" Now ? Richard Kettlewell <invalid@invalid.invalid> - 2024-11-24 19:14 +0000
                Re: Are We Back to the "Wars" Now ? "Carlos E.R." <robin_listas@es.invalid> - 2024-11-24 20:32 +0100
                Re: Are We Back to the "Wars" Now ? Rich <rich@example.invalid> - 2024-11-24 19:36 +0000
  Re: Are We Back to the "Wars" Now ? Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-11-20 00:22 +0000
    Re: Are We Back to the "Wars" Now ? "186282@ud0s4.net" <186283@ud0s4.net> - 2024-12-03 01:19 -0500
      Re: Are We Back to the "Wars" Now ? Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-12-03 06:49 +0000
        Re: Are We Back to the "Wars" Now ? "186282@ud0s4.net" <186283@ud0s4.net> - 2024-12-04 01:10 -0500
          Re: Are We Back to the "Wars" Now ? Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-12-04 06:45 +0000

csiph-web