"at" command and mail

Adam Vande More amvandemore at gmail.com
Sat Sep 3 18:15:32 UTC 2011


On Sat, Sep 3, 2011 at 1:06 PM, Brett Glass <brett at lariat.net> wrote:

> If you redirect the output from the command to /dev/null or other file, you
> shouldn't recieve an email unless you've also specified -m.
>
> True. But that's awkward, and if you have a job that runs more than once,
> it'd be convenient to be able to keep the output from each run.
>

That's easy, just put a timestamp in the filename:

echo foo > `date +\%Y\%m\%d`.txt

-- 
Adam Vande More


More information about the freebsd-questions mailing list