From owner-freebsd-questions@FreeBSD.ORG Mon Feb 26 17:42:08 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 884DC16A402 for ; Mon, 26 Feb 2007 17:42:08 +0000 (UTC) (envelope-from derek@computinginnovations.com) Received: from betty.computinginnovations.com (dsl081-227-250.chi1.dsl.speakeasy.net [64.81.227.250]) by mx1.freebsd.org (Postfix) with ESMTP id 08B6E13C491 for ; Mon, 26 Feb 2007 17:42:05 +0000 (UTC) (envelope-from derek@computinginnovations.com) Received: from p28.computinginnovations.com (dhcp-10-20-30-100.computinginnovations.com [10.20.30.100]) (authenticated bits=0) by betty.computinginnovations.com (8.13.8/8.12.11) with ESMTP id l1QHfY9S011324; Mon, 26 Feb 2007 11:41:35 -0600 (CST) Message-Id: <6.0.0.22.2.20070226114021.024ce058@mail.computinginnovations.com> X-Sender: derek@mail.computinginnovations.com X-Mailer: QUALCOMM Windows Eudora Version 6.0.0.22 Date: Mon, 26 Feb 2007 11:41:22 -0600 To: Robin Becker , FreeBSD Questions From: Derek Ragona In-Reply-To: <45E3089F.9070000@chamonix.reportlab.co.uk> References: <45E3089F.9070000@chamonix.reportlab.co.uk> Mime-Version: 1.0 X-ComputingInnovations-MailScanner-Information: Please contact the ISP for more information X-ComputingInnovations-MailScanner: Found to be clean X-ComputingInnovations-MailScanner-From: derek@computinginnovations.com X-Spam-Status: No Content-Type: text/plain; charset="us-ascii"; format=flowed X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: 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 17:42:08 -0000 Environment variables are set first by the users shell which then is used to exec cron jobs. Basically, always take nothing in the environment for granted. -Derek At 10:19 AM 2/26/2007, Robin Becker wrote: >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 >_______________________________________________ >freebsd-questions@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-questions >To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > >-- >This message has been scanned for viruses and >dangerous content by MailScanner, and is >believed to be clean. >MailScanner thanks transtec Computers for their support. > -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support.