From owner-freebsd-questions@FreeBSD.ORG Sun Sep 7 18:54:12 2003 Return-Path: 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 8E69316A4BF for ; Sun, 7 Sep 2003 18:54:12 -0700 (PDT) Received: from redhat.vipersystems.biz (user198.net263.oh.sprint-hsd.net [208.17.71.198]) by mx1.FreeBSD.org (Postfix) with SMTP id D609543FD7 for ; Sun, 7 Sep 2003 18:54:09 -0700 (PDT) (envelope-from jason@vipersystems.biz) Received: (qmail 97104 invoked by uid 85); 8 Sep 2003 01:54:09 -0000 Received: from jason@vipersystems.biz by redhat.vipersystems.biz by uid 82 with qmail-scanner-1.16 (clamscan: 20030613. spamassassin: 2.55. Clear:. Processed in 0.418202 secs); 08 Sep 2003 01:54:09 -0000 Received: from localhost (HELO vipersystems.biz) (127.0.0.1) by localhost with SMTP; 8 Sep 2003 01:54:08 -0000 Received: from 205.240.37.184 (SquirrelMail authenticated user jason@vipersystems.biz) by www.vipersystems.biz with HTTP; Sun, 7 Sep 2003 21:54:08 -0400 (EDT) Message-ID: <13696.205.240.37.184.1062986048.squirrel@www.vipersystems.biz> Date: Sun, 7 Sep 2003 21:54:08 -0400 (EDT) From: "Jason Lieurance" To: X-Priority: 3 Importance: Normal X-Mailer: SquirrelMail (version 1.2.12[cvs]) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Subject: Making a certain cron job X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Sep 2003 01:54:12 -0000 Hello, We use cronolog to rotate our apache log files so are log files look like so: 2003-09-07-error_log Now, I want to make a cron job to mail the log to our webmaster every day but I having terrible visualizing how to do it. If I do 'cat /var/log/http/2003-09-* | mail -s log web@ourdomain.com' he'll get every log of the month not to mention next month I'll have to edit the job. I know I'll need to use variables but I'm drawing a blank. Please advise. -- Jason