From owner-freebsd-questions@FreeBSD.ORG Thu Dec 24 04:32:32 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 36C6C106566B for ; Thu, 24 Dec 2009 04:32:32 +0000 (UTC) (envelope-from noeldude@gmail.com) Received: from mail-yx0-f171.google.com (mail-yx0-f171.google.com [209.85.210.171]) by mx1.freebsd.org (Postfix) with ESMTP id EA7C88FC0A for ; Thu, 24 Dec 2009 04:32:31 +0000 (UTC) Received: by yxe1 with SMTP id 1so7470645yxe.3 for ; Wed, 23 Dec 2009 20:32:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:cc:content-type; bh=VAeNqvvn7eR4DuLhPYzbcUumUQkMzZw7jZrXQ9DNzB0=; b=hl5p4FIVlnf4ODhfRKHzSRqaMjmE0eEPlFhbBxCefQ4ZKYGnrbvfyJSj9RzzhwXI92 hDlvmNpfnsmgHcUBqDXlNPAGI95UAwhdYD4yQovaLbX8lF8qvjI4eN2MyVHsnX6pu74+ ZMEFZ68oH5654zCgVOptA1ZlKv8BZvLCABmo8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; b=MN2UZIERzUIyaDh0aKKDUSFS/JCscCm8ipGVYNM6HiD7mABGs9fd520u/twLYLgnEJ mmnXzikEn9B5XL9pyUGTJTCUTQ47ROLYQVPtA2ki0NfFFD6U5EU0+8O5K94hjaqoNtPV /B06FGzOJJPXSU9TCclPKjMtE5C7jSRvuKp+s= MIME-Version: 1.0 Received: by 10.150.40.35 with SMTP id n35mr16773442ybn.282.1261629151204; Wed, 23 Dec 2009 20:32:31 -0800 (PST) In-Reply-To: <4B32EBDB.1090808@lazlarlyricon.com> References: <4B32EBDB.1090808@lazlarlyricon.com> Date: Wed, 23 Dec 2009 22:32:31 -0600 Message-ID: From: Noel Jones Cc: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: Supressing dd output X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Dec 2009 04:32:32 -0000 On Wed, Dec 23, 2009 at 10:19 PM, Rolf Nielsen wrote: > Hello everyone, > > I'm wondering if there's a way to supress the summary output from dd. I'm > working on a backup script, that encrypts the backups, and after encrypting > overwrites the unencrypted file several times using dd. I've tried to > redirect the output with 2>&1 > /dev/null but it doesn't work. Since I run > the script from the daily_local variable in periodic.conf, and the script > backs up 11 filsystems (ZFS) to separate files, the mail from periodic daily > gets ridiculously long, and most of it being dd summaries. > > I guess I could hack the source code of dd, but I'd prefer not to have to. > Has anyone got any ideas? > > Thanks in advance and Merry Christmas to all of you, > > Rolf Nielsen Order matters. dd ... >/dev/null 2>&1 -- Noel Jones