cron/send mail question
iaccounts at ibctech.ca
Thu Nov 15 05:22:16 PST 2007
zbigniew szalbot 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.
The following should be on one line in crontab :
1 * * * * mail -s "File contents" my at email.addr < /home/steveb/file.name
It will send your file to you inline in an email ad one minute after
midnight every day.
More information about the freebsd-questions