Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Mar 2003 16:08:39 -0600
From:      "Kenzo" <kenzo_chin@hotmail.com>
To:        <freebsd-questions@FreeBSD.ORG>
Subject:   cron question
Message-ID:  <DAV69mLAztxc1o8yfog0000008c@hotmail.com>

next in thread | raw e-mail | index | archive | help
I'm trying to automatically create a report in cron and E-mailling it to my
E-mail account.

this is what I have.

0 1 0 0 0 root /usr/bin/perl /usr/local/bin/spamstat.pl /var/log/maillog.0 >
/var/log/spam_report | uuencode spam_report spam_report | mail -s
"spam_daily_report" me@mydomain.com

what I get is a blanc attachment.
the spam_report file does get created in the /var/log dir with all the right
stuff in it, so I don't get why it won't E-mail it.
I have the same setup for another report and it works fine.

I know this would probably work better if I created a script to do all this
and have cron run the script, but I don't know how to write any scripts.

Thanks.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?DAV69mLAztxc1o8yfog0000008c>