From owner-freebsd-questions@FreeBSD.ORG Tue Jul 18 06:29:26 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 BA40616A4DD for ; Tue, 18 Jul 2006 06:29:26 +0000 (UTC) (envelope-from perikillo@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.174]) by mx1.FreeBSD.org (Postfix) with ESMTP id 39AE143D49 for ; Tue, 18 Jul 2006 06:29:24 +0000 (GMT) (envelope-from perikillo@gmail.com) Received: by ug-out-1314.google.com with SMTP id j3so255258ugf for ; Mon, 17 Jul 2006 23:29:23 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=J8Ejsse2CEj38mUyci5D2uXR5NzLT9KxmoF2Y484CPwAU0xFQBR4klG1FkSD0sIB1kPQZzuurUncnzMBCvSGdeLrvCwIfg0VY71fSKLtOy+apZk4gNN90HlUIWpuZuN5IIS/j68PaSWtwWIBs/vGGJzfHmi3qgwo7zUkguZQ2TI= Received: by 10.82.109.19 with SMTP id h19mr23179buc; Mon, 17 Jul 2006 23:29:23 -0700 (PDT) Received: by 10.82.141.1 with HTTP; Mon, 17 Jul 2006 23:29:23 -0700 (PDT) Message-ID: <51d7a5160607172329n4e5919b7ua15dbc091dfa4c58@mail.gmail.com> Date: Mon, 17 Jul 2006 23:29:23 -0700 From: perikillo To: "FreeBSD Mailing List" In-Reply-To: <20060717175332.GB81811@dan.emsphone.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <51d7a5160607171017v148af14v2c838ca5bd129b87@mail.gmail.com> <20060717175332.GB81811@dan.emsphone.com> 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: Tue, 18 Jul 2006 06:29:26 -0000 On 7/17/06, Dan Nelson wrote: > 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 > Yeaa guys thanks for your help, my job is working now just need to figure out why is not sending the email to the root account...? Thanks :-).