From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 24 11:06:58 2017 Received: (at submit) by debbugs.gnu.org; 24 Jul 2017 15:06:58 +0000 Received: from localhost ([127.0.0.1]:54425 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dZewk-0004G6-HI for submit@debbugs.gnu.org; Mon, 24 Jul 2017 11:06:58 -0400 Received: from eggs.gnu.org ([208.118.235.92]:54885) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dZeRS-0003Vn-Du for submit@debbugs.gnu.org; Mon, 24 Jul 2017 10:34:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dZeRM-0000lH-IX for submit@debbugs.gnu.org; Mon, 24 Jul 2017 10:34:33 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.2 required=5.0 tests=BAYES_05, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:36992) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dZeRM-0000l0-Fy for submit@debbugs.gnu.org; Mon, 24 Jul 2017 10:34:32 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45854) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dZeRL-0003E5-E3 for bug-coreutils@gnu.org; Mon, 24 Jul 2017 10:34:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dZeRK-0000ir-Bc for bug-coreutils@gnu.org; Mon, 24 Jul 2017 10:34:31 -0400 Received: from mail-yw0-x230.google.com ([2607:f8b0:4002:c05::230]:33004) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dZeRK-0000go-7U for bug-coreutils@gnu.org; Mon, 24 Jul 2017 10:34:30 -0400 Received: by mail-yw0-x230.google.com with SMTP id x125so50114101ywa.0 for ; Mon, 24 Jul 2017 07:34:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=pWpY44bP5F4payehpdWlS9iwHjO3u0HPWbIvouHuYLw=; b=U8xU5qI6RVwaGTTy1HkcDnkneelb7fr+UO9hInoanzZerXwIMlasZcKUbvn/IQEX8s Mckcm5X1NMDTzSv8JwZ8KojuuD/0ZSo0bh5Ed5hYwDTqejLj/yZXxeujohBlJs2okH4T Ptg9Aa7DFRNjUPaIjYKrD8xjIfAsq9PI7u1K99wf28GSObjT+IfMmXoQCWC87sRIMdLa U23p9Jku/BlYk6Fwll6rdPD+N3dL+fpFkXgRPUdo+SEdpURJOfvSPjQjim8tyRjkoQAU iNwfZz8OqE7TgQnVq8LOw1pToqJ1U8MI+aCU/pvIX1q/F4uJ8BWnRJjX3yNa90rbzzxw fZhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=pWpY44bP5F4payehpdWlS9iwHjO3u0HPWbIvouHuYLw=; b=S7uC5uTHXzH8JKKPBDRHhwhmJPFY4yviz4moJT2kclgyTeq9QG7WtqPFA0Tn3bTJcJ GXZjIwdXAsZaArsOxQFxDCOLxpsSlW+9X9oruTp6PzoS4d7iKAmLIL3HtxiQVUU1jUj8 BQFlmgnbCz23y1TJJRc01E2zhsvEk2Js8Fpn4RSalFGfs6bHU6CPU1KfpWpJZLQNXVLY DQQnSQEz7gfYT5TcAcMcM096a4FdQfUQ9SJ6tOPX8LpjBPFFEv/UCFD6J/1Ixy0/ZY3q sFzENkLDypLt39xNdPfmoPByavalw6vh+M4/V5kMWXU5v0lDWqfjFOPTDSoCbCKSUzYT BQew== X-Gm-Message-State: AIVw1115xksvDpDne4aDevGLcDpbO9npD+7DEIDmULGSYXJkwW65zR3V 2DQFOzdm5EgCXTUHdwGDMiRRCtg/dksl X-Received: by 10.37.178.37 with SMTP id i37mr14063321ybj.44.1500906867501; Mon, 24 Jul 2017 07:34:27 -0700 (PDT) MIME-Version: 1.0 Received: by 10.129.226.72 with HTTP; Mon, 24 Jul 2017 07:34:27 -0700 (PDT) From: vasanth kumar Date: Mon, 24 Jul 2017 20:04:27 +0530 Message-ID: Subject: dd by default prints output to stderr instead of stdout To: bug-coreutils@gnu.org Content-Type: multipart/alternative; boundary="f403045f3e3eadb0e30555111cf0" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -6.6 (------) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Mon, 24 Jul 2017 11:06:57 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.6 (------) --f403045f3e3eadb0e30555111cf0 Content-Type: text/plain; charset="UTF-8" Hi, When I run a dd command successfully, it actually prints I/O statistics to standard error and not stdout . Is not it suppposed to print it on stdout by default for a good run? Thanks, Vasanth --f403045f3e3eadb0e30555111cf0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

When I run a dd command successfull= y, it actually =C2=A0prints I/O statistics to standard error and not stdout= . Is not it suppposed to print it on stdout by default for a good run?

Thanks,
Vasanth
--f403045f3e3eadb0e30555111cf0-- From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 24 11:13:30 2017 Received: (at control) by debbugs.gnu.org; 24 Jul 2017 15:13:30 +0000 Received: from localhost ([127.0.0.1]:54432 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dZf34-0004PX-Go for submit@debbugs.gnu.org; Mon, 24 Jul 2017 11:13:30 -0400 Received: from mx1.redhat.com ([209.132.183.28]:50008) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dZf32-0004PD-ID; Mon, 24 Jul 2017 11:13:29 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 36F0A61D38; Mon, 24 Jul 2017 15:13:22 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 36F0A61D38 Authentication-Results: ext-mx10.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx10.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=eblake@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 36F0A61D38 Received: from [10.10.121.48] (ovpn-121-48.rdu2.redhat.com [10.10.121.48]) by smtp.corp.redhat.com (Postfix) with ESMTP id A44796F97C; Mon, 24 Jul 2017 15:13:21 +0000 (UTC) Subject: Re: bug#27803: dd by default prints output to stderr instead of stdout To: vasanth kumar , 27803-done@debbugs.gnu.org References: From: Eric Blake Openpgp: url=http://people.redhat.com/eblake/eblake.gpg Organization: Red Hat, Inc. Message-ID: <1bbee072-3790-0581-2262-8775cbfb2dba@redhat.com> Date: Mon, 24 Jul 2017 10:13:20 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="geNo5RLwCsv9aXaHACF0sitM01dRMtW8Q" X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Mon, 24 Jul 2017 15:13:22 +0000 (UTC) X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --geNo5RLwCsv9aXaHACF0sitM01dRMtW8Q Content-Type: multipart/mixed; boundary="WgSHw52tD7Ec5XRRG0j1GInMTFXOeKten"; protected-headers="v1" From: Eric Blake To: vasanth kumar , 27803-done@debbugs.gnu.org Message-ID: <1bbee072-3790-0581-2262-8775cbfb2dba@redhat.com> Subject: Re: bug#27803: dd by default prints output to stderr instead of stdout References: In-Reply-To: --WgSHw52tD7Ec5XRRG0j1GInMTFXOeKten Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable tag 27803 notabug thanks On 07/24/2017 09:34 AM, vasanth kumar wrote: > Hi, >=20 > When I run a dd command successfully, it actually prints I/O statistic= s to > standard error and not stdout . Is not it suppposed to print it on stdo= ut > by default for a good run? No, POSIX requires that it print stats to stderr. http://pubs.opengroup.org/onlinepubs/9699919799/utilities/dd.html "STDERR On completion, dd shall write the number of input and output blocks to standard error...." Therefore, the behavior is intentional, and I'm closing this as not a bug. However, feel free to reply to this thread if you have further questions on the topic. --=20 Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org --WgSHw52tD7Ec5XRRG0j1GInMTFXOeKten-- --geNo5RLwCsv9aXaHACF0sitM01dRMtW8Q Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEzBAEBCAAdFiEEccLMIrHEYCkn0vOqp6FrSiUnQ2oFAll2DpAACgkQp6FrSiUn Q2pLJggAqI5PAm5GBLO/+OEYy8i2jMoAF/U0P3Z7paNCd3eaUGGrdVKfMDJwXqzf SKejbl+fOTx+/A+PTnMA1dco21w8bmAALDKPyPpMf3JPawusxG2iNKibGCsiNdXo F0sAG/j34516cdf4LEfwPSvPGwBmncHDSZntGge+R3ufM9UGKSDalK+a6DvtE3eY Rzbowx1hugwWtkI0XLqML9UUE+AlJqwajUvl51VI19uqj1qBtRtr4TIb4hPUAFj2 3pLPEVArF+FfoCFllZnfry2egpyGGhBqUq++CpLeOYI3euPijEWh4H4tBdX5RSh3 /ezPdkciqGmYSAJnUHXusV5GpC70Fw== =F385 -----END PGP SIGNATURE----- --geNo5RLwCsv9aXaHACF0sitM01dRMtW8Q-- From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 24 11:27:12 2017 Received: (at 27803-done) by debbugs.gnu.org; 24 Jul 2017 15:27:12 +0000 Received: from localhost ([127.0.0.1]:54471 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dZfGK-0006ZJ-4a for submit@debbugs.gnu.org; Mon, 24 Jul 2017 11:27:12 -0400 Received: from mail-yw0-f175.google.com ([209.85.161.175]:35065) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dZf8x-0006Ne-Tb for 27803-done@debbugs.gnu.org; Mon, 24 Jul 2017 11:19:36 -0400 Received: by mail-yw0-f175.google.com with SMTP id h189so25522597ywf.2 for <27803-done@debbugs.gnu.org>; Mon, 24 Jul 2017 08:19:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=J1nXiB+6AZLorKdFIw6y5pkmE/NUDro0G5XmomtEdtc=; b=KaEkJpMJxX1OQ2VfVM/thnVlpMCyURBI/PyTzr3IAlYO0vPHjF5V1vGsKv7RoKL9lJ /cu0FzoYeQFDzdutEEipjDdVwFYBnH5zR6Dq+cVKqVagZY2S1ljtrm/2w8Os+mOhe6+X 1QBwmXIpROQd4rb/DtsyhdK4/MedSCf+3EN/xawGWq8tj72lEdgepdG7dWBiQsFuHJIP VrWFzU2eoLdNC90NAlckCGA557hVuhr4TcKgJ0p4rPxOE1+GVBljaTAsnzVxct5VGBkj b02Y15j1piUnA6qqX/cwx9OBGmKYv+0XGwrS/bC2OD/h2AacpbUU7Kl8oBzGzVqdsWaV lSww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=J1nXiB+6AZLorKdFIw6y5pkmE/NUDro0G5XmomtEdtc=; b=Bm9HZAaSpKxEq7LCuK/HvA84uT3k1vMhahpSJpRnYzun4t6tKp4uiITP/yhLexU1Tk e5dVfsXaNUM/UbAu/A5SS3YN6bsZAYZH8+OFW/XAwj9iBX5UlZ9VzotoZEeJKt85js1z 9OIpOn4fPH8NMKdTcAAXfmX+yB+rJGnarwEahuxc6k8qE10G6ZP0NNPZuAvAfi8OncFP lGkcsO1aAfxvcLKx9CUrOty9varbIMaDm7hCcgn4lXISFZyw1MJCFNRnaoE/NzwozRW6 DchdGFJWnXvGWYlKHDnHFHRlM3aPBYVzjksc7nvfdC94Lxj4D80K1YRxbqGsxkGth4LZ hPAw== X-Gm-Message-State: AIVw113oqK2rX8k7W0e7nno65RVmLVRBREVB5sBYpY5gpc/pfmiUVbP/ K8q9ipzetI7z8Z1S+6anA8gcVly+iw== X-Received: by 10.37.162.6 with SMTP id b6mr11289282ybi.333.1500909570352; Mon, 24 Jul 2017 08:19:30 -0700 (PDT) MIME-Version: 1.0 Received: by 10.129.226.72 with HTTP; Mon, 24 Jul 2017 08:19:29 -0700 (PDT) In-Reply-To: <1bbee072-3790-0581-2262-8775cbfb2dba@redhat.com> References: <1bbee072-3790-0581-2262-8775cbfb2dba@redhat.com> From: vasanth kumar Date: Mon, 24 Jul 2017 20:49:29 +0530 Message-ID: Subject: Re: bug#27803: dd by default prints output to stderr instead of stdout To: Eric Blake Content-Type: multipart/alternative; boundary="94eb2c199b6cc7ef26055511bdd5" X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: 27803-done X-Mailman-Approved-At: Mon, 24 Jul 2017 11:27:10 -0400 Cc: 27803-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.7 (/) --94eb2c199b6cc7ef26055511bdd5 Content-Type: text/plain; charset="UTF-8" Thanks Eric .I got the answer. On Mon, Jul 24, 2017 at 8:43 PM, Eric Blake wrote: > tag 27803 notabug > thanks > > On 07/24/2017 09:34 AM, vasanth kumar wrote: > > Hi, > > > > When I run a dd command successfully, it actually prints I/O statistics > to > > standard error and not stdout . Is not it suppposed to print it on stdout > > by default for a good run? > > No, POSIX requires that it print stats to stderr. > http://pubs.opengroup.org/onlinepubs/9699919799/utilities/dd.html > "STDERR > > On completion, dd shall write the number of input and output blocks > to standard error...." > > Therefore, the behavior is intentional, and I'm closing this as not a > bug. However, feel free to reply to this thread if you have further > questions on the topic. > > -- > Eric Blake, Principal Software Engineer > Red Hat, Inc. +1-919-301-3266 > Virtualization: qemu.org | libvirt.org > > --94eb2c199b6cc7ef26055511bdd5 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks Eric .I got the answer.

On Mon, Jul 24, 2017 at 8:43 PM, Eric B= lake <eblake@redhat.com> wrote:
tag 27803 notabug
thanks

On 07/24/2017 09:34 AM, vasanth kumar wrote:
> Hi,
>
> When I run a dd command successfully, it actually=C2=A0 prints I/O sta= tistics to
> standard error and not stdout . Is not it suppposed to print it on std= out
> by default for a good run?

No, POSIX requires that it print stats to stderr.
http://pubs.opengroup.org/onli= nepubs/9699919799/utilities/dd.html
"STDERR

=C2=A0 =C2=A0 On completion, dd shall write the number of input and output = blocks
to standard error...."

Therefore, the behavior is intentional, and I'm closing this as not a bug.=C2=A0 However, feel free to reply to this thread if you have further questions on the topic.

--
Eric Blake, Principal Software Engineer
Red Hat, Inc.=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0+1-919-301-3266
Virtualization:=C2=A0 qemu.org | libvirt.org


--94eb2c199b6cc7ef26055511bdd5-- From unknown Wed Jun 25 00:24:54 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 22 Aug 2017 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator