From owner-freebsd-questions Fri Mar 14 14: 8:42 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3FE4D37B401 for ; Fri, 14 Mar 2003 14:08:41 -0800 (PST) Received: from hotmail.com (dav69.sea1.hotmail.com [207.68.162.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id A594943FD7 for ; Fri, 14 Mar 2003 14:08:40 -0800 (PST) (envelope-from kenzo_chin@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Fri, 14 Mar 2003 14:08:40 -0800 X-Originating-IP: [209.187.233.156] From: "Kenzo" To: Subject: cron question Date: Fri, 14 Mar 2003 16:08:39 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Message-ID: X-OriginalArrivalTime: 14 Mar 2003 22:08:40.0479 (UTC) FILETIME=[4504FAF0:01C2EA76] Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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