From owner-freebsd-current Wed Apr 1 15:36:38 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA10150 for freebsd-current-outgoing; Wed, 1 Apr 1998 15:36:38 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from aurora.sol.net (jgreco@aurora.sol.net [206.55.65.76]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA10082 for ; Wed, 1 Apr 1998 15:36:28 -0800 (PST) (envelope-from jgreco@aurora.sol.net) Received: (from jgreco@localhost) by aurora.sol.net (8.8.8/8.8.8/SNNS-1.02) id RAA22087 for current@freebsd.org; Wed, 1 Apr 1998 17:36:24 -0600 (CST) From: Joe Greco Message-Id: <199804012336.RAA22087@aurora.sol.net> Subject: Cron problems? To: current@FreeBSD.ORG Date: Wed, 1 Apr 1998 17:36:24 -0600 (CST) X-Mailer: ELM [version 2.4ME+ PL32 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG FYI - FreeBSD mnemom.sol.net 3.0-980331-SNAP FreeBSD 3.0-980331-SNAP #1: Tue Mar 31 06:29:11 CST 1998 root@mnemom.sol.net:/usr/src/sys/compile/SMP-MNEMOM i386 Dual P200 box with 512MB RAM mnemom# crontab -u news -l # DO NOT EDIT THIS FILE - edit the master and reinstall. # (/tmp/crontab.sOoyuey745 installed on Wed Apr 1 17:17:38 1998) # (Cron version -- $Id: crontab.c,v 1.11 1997/09/15 06:39:15 charnier Exp $) */2 * * * * dbin/dspoolout >> log/dspoolout.log 2>&1 */5 * * * * (cd adm; for i in quadhr.*; do ./$i; done) >>log/daily.log 2>&1 50 * * * * (cd adm; for i in hourly.*; do ./$i; done) >>log/daily.log 2>&1 40 2 * * * (cd adm; for i in daily.*; do ./$i; done) >>log/daily.log 2>&1 30 2 * * 1,4 (cd adm; for i in biweekly.*; do ./$i; done) >>log/daily.log 2>&1 I am getting really odd results. I have run cron in debug mode, and without looking at the code, it seems to me that it's miscalculating the "sleep" interval. >From "cron" debug output... user [root:0:0:...] cmd=" adjkerntz -a" user [root:0:0:...] cmd=" periodic monthly 2>&1 | sendmail root" user [root:0:0:...] cmd=" periodic weekly 2>&1 | sendmail root" user [root:0:0:...] cmd=" periodic daily 2>&1 | sendmail root" user [root:0:0:...] cmd="newsyslog" user [root:0:0:...] cmd="/usr/libexec/atrun" user [news:8:8:...] cmd="(cd adm; for i in biweekly.*; do ./$i; done) >>log/daily.log 2>&1" user [news:8:8:...] cmd="(cd adm; for i in daily.*; do ./$i; done) >>log/daily.log 2>&1" user [news:8:8:...] cmd="(cd adm; for i in hourly.*; do ./$i; done) >>log/daily.log 2>&1" user [news:8:8:...] cmd="(cd adm; for i in quadhr.*; do ./$i; done) >>log/daily.log 2>&1" user [news:8:8:...] cmd="dbin/dspoolout >> log/dspoolout.log 2>&1" [517] TargetTime=891474000, sec-to-wait=596 [517] sleeping for 596 seconds I'll probably haul out the sources later and try to figure out how it determines that sleeping-for value. It's clearly wrong. ... Joe ------------------------------------------------------------------------------- Joe Greco - Systems Administrator jgreco@ns.sol.net Solaria Public Access UNIX - Milwaukee, WI 414/342-4847 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message