From owner-freebsd-questions@FreeBSD.ORG Sun Sep 4 00:27:08 2011 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E623E106566C for ; Sun, 4 Sep 2011 00:27:08 +0000 (UTC) (envelope-from bah@bananmonarki.se) Received: from feeder.usenet4all.se (1-1-1-38a.far.sth.bostream.se [82.182.32.53]) by mx1.freebsd.org (Postfix) with ESMTP id 6AA7C8FC0A for ; Sun, 4 Sep 2011 00:27:08 +0000 (UTC) Received: from kw.homeip.net (c80-217-64-49.bredband.comhem.se [80.217.64.49]) by feeder.usenet4all.se (8.13.1/8.13.1) with ESMTP id p840A7BS094969; Sun, 4 Sep 2011 02:10:09 +0200 (CEST) (envelope-from bah@bananmonarki.se) Message-ID: <4E62C1DE.3040404@bananmonarki.se> Date: Sun, 04 Sep 2011 02:10:06 +0200 From: Bernt Hansson User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:6.0) Gecko/20110821 Thunderbird/6.0 MIME-Version: 1.0 To: Brett Glass References: <201109031639.KAA25689@lariat.net> In-Reply-To: <201109031639.KAA25689@lariat.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: questions@freebsd.org Subject: Re: "at" command and mail 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: Sun, 04 Sep 2011 00:27:09 -0000 2011-09-03 18:39, Brett Glass skrev: > I'm setting up a FreeBSD appliance that won't be running a mail daemon. > I'd like the at(8) command to be there for scheduling of commands, but > do not see any way to prevent it from trying to send mail after it > executes a command. (There's not even a command line option that says > "do not mail," or at least I can't find one.) Am I missing something, or > does at(8) always expect to be able to send mail? If so, would it be > worth implementing an atrun.conf configuration file that makes it > optional and possibly sets other defaults for at(8)? > This is quick AND dirty Put this in your crontab: MAILTO="" N.B You will not get ANY mail from cron jobs!