From owner-freebsd-questions@FreeBSD.ORG Wed Oct 4 12:43:29 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 ADDDA16A403 for ; Wed, 4 Oct 2006 12:43:29 +0000 (UTC) (envelope-from list-freebsd-2004@morbius.sent.com) Received: from out1.smtp.messagingengine.com (out1.smtp.messagingengine.com [66.111.4.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5770843D45 for ; Wed, 4 Oct 2006 12:43:29 +0000 (GMT) (envelope-from list-freebsd-2004@morbius.sent.com) Received: from frontend3.internal (frontend3.internal [10.202.2.152]) by frontend1.messagingengine.com (Postfix) with ESMTP id 2CE17DAF9DB for ; Wed, 4 Oct 2006 08:43:28 -0400 (EDT) Received: from heartbeat2.internal ([10.202.2.161]) by frontend3.internal (MEProxy); Wed, 04 Oct 2006 08:43:30 -0400 X-Sasl-enc: i/z+k9AnPoYS5qq6Olq4BfItCy8LpHpbPy+NV6SG2msA 1159965810 Received: from gumby.localdomain (bb-87-81-140-128.ukonline.co.uk [87.81.140.128]) by mail.messagingengine.com (Postfix) with ESMTP id 6EA37B55E for ; Wed, 4 Oct 2006 08:43:30 -0400 (EDT) From: RW To: Free BSD Questions list Date: Wed, 4 Oct 2006 13:43:25 +0100 User-Agent: KMail/1.9.4 References: <20061004000523.GA5229@teddy.fas.com> In-Reply-To: <20061004000523.GA5229@teddy.fas.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200610041343.26488.list-freebsd-2004@morbius.sent.com> Subject: Re: Strange cron behavior 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: Wed, 04 Oct 2006 12:43:29 -0000 On Wednesday 04 October 2006 01:05, stan wrote: > I'm having a hard time getting cron to run a task. I've run crontab -e > (as root), and added the following line: > > 12 * * * * /usr/local/bin/mirror_ubuntu > > This script runs from teh command line. Now I've seen plenty of > strange beahviour because of the limited environment cron tasks > get, but a basic "echo "test" >> /tmp/stan isn't even creating > the file. You can set environmental variables in the crontab file, see crontab(5)