From owner-freebsd-questions@FreeBSD.ORG Tue Dec 14 18:51:00 2004 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 01CC916A4CE for ; Tue, 14 Dec 2004 18:51:00 +0000 (GMT) Received: from zeppo.candhsoftware.com (tcsnapanas19poolc65.tcsn.uswest.net [65.100.103.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4AAB643D5D for ; Tue, 14 Dec 2004 18:50:59 +0000 (GMT) (envelope-from awc@candhsoftware.com) Received: from candhsoftware.com ([65.116.227.104])iBEIjjd5086726 for ; Tue, 14 Dec 2004 11:45:45 -0700 (MST) (envelope-from awc@candhsoftware.com) Message-ID: <41BF360C.7030605@candhsoftware.com> Date: Tue, 14 Dec 2004 11:50:52 -0700 From: Andy Clements User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <41BF2F0A.6020203@candhsoftware.com> In-Reply-To: <41BF2F0A.6020203@candhsoftware.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: cron not running job 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: Tue, 14 Dec 2004 18:51:00 -0000 Andy Clements wrote: > Hello All, > > I'm having problems getting my freshly update FreeBSD 5.3 system to > run my cron jobs. Logged in as root, I enter the job in root's > crontab with the following command > > crontab -e > > I enter the job in the following format: > > 05 10 * * * /root/cronjobs/cvs-sup.sh > > The script has the following permissions: > > -rwxr-xr-x 1 root wheel 255 Dec 13 10:39 cvs-sup.sh > > I can run the script as root with no errors. I look in the > /var/log/cron log and I don't see any attempt by cron to run the job. > There is no error either. There are entries for the edit of the > crontab: > > Dec 14 10:03:36 bukowski crontab[632]: (root) BEGIN EDIT (root) > Dec 14 10:03:45 bukowski crontab[632]: (root) REPLACE (root) > Dec 14 10:03:45 bukowski crontab[632]: (root) END EDIT (root) > Dec 14 11:04:00 bukowski /usr/sbin/cron[405]: (root) RELOAD (tabs/root) > > But nothing else. So, I'm at a lost. I have the understanding that > cron should immediately recognize any changes to the file, but it > doesn't seem to be working. I even re-booted in desperation. Did I > forget some small tid-bit that needs to change for this to work? I've > checked the Handbook, the FAQ, Google and the mailing list, but I > haven't seen any solutions. > > Please CC me with your answer as I am not on the mailing list. > > Thanks in advance, > Andy Clements An update. It appears that newline or carriage return must be placed at the end of the crontab line for the command to run by cron. thanks to anyone who answered anyway! --Andy