From owner-freebsd-questions@FreeBSD.ORG Mon Feb 26 16:44:03 2007 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D37EA16A401 for ; Mon, 26 Feb 2007 16:44:03 +0000 (UTC) (envelope-from robin@reportlab.com) Received: from relay03.pair.com (relay03.pair.com [209.68.5.17]) by mx1.freebsd.org (Postfix) with SMTP id 5D92C13C441 for ; Mon, 26 Feb 2007 16:44:03 +0000 (UTC) (envelope-from robin@reportlab.com) Received: (qmail 42963 invoked from network); 26 Feb 2007 16:17:22 -0000 Received: from 217.196.247.135 (HELO ?192.168.0.3?) (217.196.247.135) by relay03.pair.com with SMTP; 26 Feb 2007 16:17:22 -0000 X-pair-Authenticated: 217.196.247.135 Message-ID: <45E3089F.9070000@chamonix.reportlab.co.uk> Date: Mon, 26 Feb 2007 16:19:43 +0000 From: Robin Becker User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 To: FreeBSD Questions Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: cron mystery 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: Mon, 26 Feb 2007 16:44:04 -0000 Can anyone think of something that can stop cron working for a particular user? I just noticed on one of our 6.1 machines the crontab for a particular user wasn't run properly since dec 21. There were hourly and daily jobs, but neither seemed to be running. Looked in var/cron and see no deny or allow files. The user x had an proper crontab. In the end I modified the users crontab and rewrote it before ################## SHELL=/bin/sh MAILTO=user 13 3 * * * $HOME/bin/daily 19 * * * * $HOME/bin/hourly after ################## SHELL=/bin/sh MAILTO=user 13 3 * * * /home/user/bin/daily 41 * * * * /home/user/bin/hourly and at 41 past the hour the hourly job came back. Is it the HOME variable or the act of rewriting? User did have home defined in /etc/passwd. -- Robin Becker