cron/send mail question

Giorgos Keramidas keramida at ceid.upatras.gr
Thu Nov 15 06:48:44 PST 2007


On 2007-11-15 13:47, zbigniew szalbot <zbigniew at szalbot.homedns.org> wrote:
> Dear all,
> What command (when using cron) should I invoke to automatically sent
> /var/log/exim/rejectlog file to a specified email address? I just need
> to analyze it and would best prefer to have it in my inbox in the
> morning.

There are several ways.

(1) Add a new shell script to `/usr/local/etc/periodic/daily'.

(2) Add the commands you want to run in `/etc/daily.local'.

(3) Add a cronjob in `/etc/crontab' to run a custom script.




More information about the freebsd-questions mailing list