From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4106EC54EE9 for ; Tue, 13 Sep 2022 19:40:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229457AbiIMTku (ORCPT ); Tue, 13 Sep 2022 15:40:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229478AbiIMTkt (ORCPT ); Tue, 13 Sep 2022 15:40:49 -0400 Received: from vps.thesusis.net (vps.thesusis.net [34.202.238.73]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4128276771 for ; Tue, 13 Sep 2022 12:40:48 -0700 (PDT) Received: by vps.thesusis.net (Postfix, from userid 1000) id 66ED0E63A6; Tue, 13 Sep 2022 15:40:47 -0400 (EDT) References: <20220913223009.11e1e549@nvm> User-agent: mu4e 1.7.12; emacs 27.1 From: Phillip Susi To: Roman Mamedov Cc: "Kengo.M" , linux-btrfs@vger.kernel.org Subject: Re: scrub results by email Date: Tue, 13 Sep 2022 15:39:06 -0400 In-reply-to: <20220913223009.11e1e549@nvm> Message-ID: <87o7vjyse8.fsf@vps.thesusis.net> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org Roman Mamedov writes: > If you want to run a scheduled scrub from crontab, cron can be made to mail > all output of all cron-issued commands to a designated E-Mail address. Add: > > MAILTO=admin@example.com And it defaults to sending it to $USER@localhost, so you only need to bother with MAILTO= if you want it to go to a different mailbox.