From owner-freebsd-questions@FreeBSD.ORG Sat Jul 5 09:48:44 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 2CDDA37B401 for ; Sat, 5 Jul 2003 09:48:44 -0700 (PDT) Received: from cfcl.com (cpe-24-221-172-174.ca.sprintbbd.net [24.221.172.174]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9281243FDD for ; Sat, 5 Jul 2003 09:48:43 -0700 (PDT) (envelope-from rdm@cfcl.com) Received: from [192.168.254.205] ([192.168.254.205]) by cfcl.com (8.12.6/8.11.1) with ESMTP id h65GoRj4019889 for ; Sat, 5 Jul 2003 09:50:28 -0700 (PDT) (envelope-from rdm@cfcl.com) Mime-Version: 1.0 Message-Id: In-Reply-To: <20030705054337.21573.qmail@web41409.mail.yahoo.com> References: <20030705054337.21573.qmail@web41409.mail.yahoo.com> X-Mailer: Eudora for Macintosh! Date: Sat, 5 Jul 2003 09:48:27 -0700 To: freebsd-questions@freebsd.org From: Rich Morin Content-Type: text/plain; charset="us-ascii" ; format="flowed" Subject: Re: crontab same time execution order 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: Sat, 05 Jul 2003 16:48:45 -0000 At 10:43 PM -0700 7/4/03, Dave McCammon wrote: >Perhaps this predictable behavior is in FreeBSD only. >(I don't have access to other platforms). Or perhaps >my simple test was too simple. It just seemed to be >too predictable to not at least try to get some feed >back. I'm not a big fan of programming to take advantage of undocumented implementation details; they may change unexpectedly. Why not: * Write a wrapper script that does the desired ancillary actions, running the original command in the process: : # newsyslog_lcl - wrapper for newsyslog ... pre-actions ... newsyslog ... post-actions ... * Change /etc/crontab to invoke newsyslog_lcl, rather than newsyslog The usual caveats apply, of course, to writing root-level programs. -r -- email: rdm@cfcl.com; phone: +1 650-873-7841 http://www.cfcl.com/rdm - my home page, resume, etc. http://www.cfcl.com/Meta - The FreeBSD Browser, Meta Project, etc. http://www.ptf.com/dossier - Prime Time Freeware's DOSSIER series