"at" command and mail

Brett Glass brett at lariat.net
Sat Sep 3 18:07:04 UTC 2011


At 10:55 AM 9/3/2011, Adam Vande More 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.

I'd like to see a configuration option to send the output from each 
"at" job to a file in a directory -- one per job, automatically 
named -- rather than sending it out as e-mail. Or just not to keep 
it at all. (This could still be overridden with -m, of course.) In 
short, I'm looking for the sort of flexibility that's already built 
into periodic.conf, which allows you to specify whether output is 
mailed, sent to a file, or sent to /dev/null by default. This would 
be useful for lots of applications, and especially for embedded work.

--Brett



More information about the freebsd-questions mailing list