Date: Thu, 15 Nov 2007 08:22:07 -0500 From: Steve Bertrand <iaccounts@ibctech.ca> To: zbigniew szalbot <zbigniew@szalbot.homedns.org> Cc: freebsd-questions@freebsd.org Subject: Re: cron/send mail question Message-ID: <473C47FF.8040505@ibctech.ca> In-Reply-To: <473C3FCB.6040302@szalbot.homedns.org> References: <473C3FCB.6040302@szalbot.homedns.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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@email.addr < /home/steveb/file.name It will send your file to you inline in an email ad one minute after midnight every day. Steve
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?473C47FF.8040505>
