bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: a small add for the 'dd' command


From: Jim Meyering
Subject: Re: a small add for the 'dd' command
Date: Sun, 14 Sep 2003 19:33:07 +0200

Olivier Delhomme <address@hidden> wrote:
> Hello,
>
> I added some lines to dd.c in order to have some stats displayed while
> copying a file.
>
> As i have read somewhere, some people do not like such a behavior so i added
> a command line option : "stat=on" in order to work.
>
> Let me know if the diff file i send to you is ok (i'm a poor diff user)
>
> I hope this will be soon in an official release !
>
> see you,

Thank you for the patch.
But what about this existing interface (only recently documented)?

     Note that sending a `SIGUSR1' signal to a running `dd' process makes
  it print to standard error the number of records read and written so
  far, then to resume copying.  In the example below, `dd' is run in the
  background to copy 10 million blocks.  The `kill' command makes it
  output the first pair of intermediate record counts, and when `dd'
  completes, it outputs the final pair.

       $ dd if=/dev/zero of=/dev/null count 10M & pid=$!
       $ kill -USR1 $pid; sleep 99
       5403604+0 records in
       5403604+0 records out
       10485760+0 records in
       10485760+0 records out




reply via email to

[Prev in Thread] Current Thread [Next in Thread]