From owner-freebsd-questions@FreeBSD.ORG Mon Jul 17 17:53:34 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 1330216A4DD for ; Mon, 17 Jul 2006 17:53:34 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id B079C43D72 for ; Mon, 17 Jul 2006 17:53:33 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.1/8.13.4) id k6HHrWvF090274; Mon, 17 Jul 2006 12:53:33 -0500 (CDT) (envelope-from dan) Date: Mon, 17 Jul 2006 12:53:32 -0500 From: Dan Nelson To: perikillo Message-ID: <20060717175332.GB81811@dan.emsphone.com> References: <51d7a5160607171017v148af14v2c838ca5bd129b87@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <51d7a5160607171017v148af14v2c838ca5bd129b87@mail.gmail.com> X-OS: FreeBSD 5.5-PRERELEASE X-message-flag: Outlook Error User-Agent: Mutt/1.5.11 Cc: FreeBSD Mailing List Subject: Re: User crontab file dosent run...? 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, 17 Jul 2006 17:53:34 -0000 In the last episode (Jul 17), perikillo said: > Hi people. > > Im testing how to run scripts from cron using the crontab program, > the handbook say tha each user need to have a crontab file if they > want to run some process with the cron program: > > user-x$ crontab -e > > SHELL=/bin/sh > PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin > MAILTO=root > */1 * * * * user-x /bin/echo "Testing" User crontabs don't have a "username" column. Remove "user-x" from the above line and it should work. You should still have gotten an error message emailed to root, something like "user-x: not found". Maybe looking at /var/log/cron will help. -- Dan Nelson dnelson@allantgroup.com