From owner-freebsd-questions@FreeBSD.ORG Tue Feb 21 14:51:11 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 6488C16A420 for ; Tue, 21 Feb 2006 14:51:11 +0000 (GMT) (envelope-from cswiger@mac.com) Received: from pi.codefab.com (pi.codefab.com [199.103.21.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0337943D46 for ; Tue, 21 Feb 2006 14:51:10 +0000 (GMT) (envelope-from cswiger@mac.com) Received: from localhost (localhost [127.0.0.1]) by pi.codefab.com (Postfix) with ESMTP id E392E5C99; Tue, 21 Feb 2006 09:51:09 -0500 (EST) Received: from pi.codefab.com ([127.0.0.1]) by localhost (pi.codefab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 51356-08; Tue, 21 Feb 2006 09:51:09 -0500 (EST) Received: from [192.168.1.3] (pool-68-160-199-129.ny325.east.verizon.net [68.160.199.129]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pi.codefab.com (Postfix) with ESMTP id 0186D5C27; Tue, 21 Feb 2006 09:51:08 -0500 (EST) Message-ID: <43FB28E1.5020201@mac.com> Date: Tue, 21 Feb 2006 09:51:13 -0500 From: Chuck Swiger Organization: The Courts of Chaos User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: Graham Bentley References: <20060221120042.DC09316A420@hub.freebsd.org> <000f01c636f5$29211840$0807a8c0@admin> In-Reply-To: <000f01c636f5$29211840$0807a8c0@admin> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at codefab.com Cc: freebsd-questions@freebsd.org Subject: Re: Cron Q X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Feb 2006 14:51:11 -0000 Graham Bentley wrote: > Is it OK to list two different tasks on two lines for the exactly the same > time ? > I did this and the second one didnt run .... maybe it was a problem with the > job ... You're probably better off having a one-line cron line which invokes a shell script that runs your two different tasks sequentially (especially if the seconds depends on the output of the first). You can also conjoin the commands via "&&": grep -q WARNING /var/log/messages && echo "Warnings found!" -- -Chuck