Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 04 Sep 2011 02:10:06 +0200
From:      Bernt Hansson <bah@bananmonarki.se>
To:        Brett Glass <brett@lariat.net>
Cc:        questions@freebsd.org
Subject:   Re: "at" command and mail
Message-ID:  <4E62C1DE.3040404@bananmonarki.se>
In-Reply-To: <201109031639.KAA25689@lariat.net>
References:  <201109031639.KAA25689@lariat.net>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
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!



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?4E62C1DE.3040404>