From owner-freebsd-questions@FreeBSD.ORG Sun Sep 7 19:51:06 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 20BB116A507 for ; Sun, 7 Sep 2003 19:51:06 -0700 (PDT) Received: from bcec01.tiadon.net (BCEC.tiadon.com [69.27.132.141]) by mx1.FreeBSD.org (Postfix) with ESMTP id EBB5443F3F for ; Sun, 7 Sep 2003 19:51:04 -0700 (PDT) (envelope-from kdk@daleco.biz) Received: from applications.tiadon.com (mail.tiadon.com [172.16.18.172]) by bcec01.tiadon.net with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id S1502GCP; Sun, 7 Sep 2003 21:51:04 -0500 Received: from nitanjared ([204.213.65.23]) by applications.tiadon.com with Microsoft SMTPSVC(5.5.1877.197.19); Sun, 7 Sep 2003 21:51:05 -0500 Message-ID: <00d601c375b4$00f95850$1741d5cc@nitanjared> From: "Kevin Kinsey, DaleCo, S.P." To: "Jason Lieurance" References: <13696.205.240.37.184.1062986048.squirrel@www.vipersystems.biz> <20030907212701.K1087@grond.sourballs.org> <14243.205.240.37.184.1062989058.squirrel@www.vipersystems.biz> Date: Sun, 7 Sep 2003 21:50:44 -0500 Organization: DaleCo, S.P.---"the solutions people" 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.1158 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 cc: questions@freebsd.org Subject: Re: Making a certain cron job X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: "Kevin Kinsey, DaleCo, S.P." List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Sep 2003 02:51:06 -0000 > David Fleck said: > > > > > Date=`date +"%Y-%m-%d"` > > > > cat /var/log/http/${Date}-error_log | mail -s log web@ourdomain.com > From: "Jason Lieurance" To: Cc: Sent: Sunday, September 07, 2003 9:44 PM Subject: Re: Making a certain cron job > Hello, > > Thank you for the response. Does the date part > (Date=`date +"%Y-%m-%d"`) go as part > of the cron job? Thanks again. > > -- > Jason > I'd say not. Save the lines he wrote as "somescript.sh" and put the following command in your crontab at the desired time: /bin/sh /path/to/somescript.sh Kevin Kinsey DaleCo, S.P.