From owner-freebsd-questions@FreeBSD.ORG Mon Jul 17 17:18:50 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 4617116A4DA for ; Mon, 17 Jul 2006 17:18:50 +0000 (UTC) (envelope-from perikillo@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.186]) by mx1.FreeBSD.org (Postfix) with ESMTP id B0FDA43D45 for ; Mon, 17 Jul 2006 17:17:54 +0000 (GMT) (envelope-from perikillo@gmail.com) Received: by nf-out-0910.google.com with SMTP id p77so232nfc for ; Mon, 17 Jul 2006 10:17:52 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=dRHXTDLeRuyrCxfnBwVHY5EeaavooywXvS1IZQFI7QC8WZ97FNHxSL2IqqWDr6w4nS+HyOVyvmayhuzwoVuFjFm5g9F+IKrY5sgCI/KHWdhlqzwcZ80peF7i14J6THKmCGXdcaFo+XFmMTQ6+qJ9woQ96bCEhLHwMBHD0LPkNyc= Received: by 10.82.103.11 with SMTP id a11mr17769buc; Mon, 17 Jul 2006 10:17:52 -0700 (PDT) Received: by 10.82.141.1 with HTTP; Mon, 17 Jul 2006 10:17:52 -0700 (PDT) Message-ID: <51d7a5160607171017v148af14v2c838ca5bd129b87@mail.gmail.com> Date: Mon, 17 Jul 2006 10:17:52 -0700 From: perikillo To: "FreeBSD Mailing List" MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: 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:18:50 -0000 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" went the user finish and save the file the system say: "/tmp/crontab.JIh2pM4Ey5" 5 lines, 120 characters crontab: installing new crontab Them i use the flag -l to see that user crontab file: root# crontab -l -u user-x SHELL=/bin/sh PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin MAILTO=root */1 * * * * user-x /bin/echo "Testing" Them the handbook say that the root user must add the user crontab file: root#crontab /var/cron/tabs/user-x_crontab_file But here the crontab add the crontab to user root, ok no problem just what to see this think works, but still dosent see any mail to root, them i run again the command but using the flag -u user-x: root#crontab -u user-x /var/cron/tabs/user-x_crontab_file My cron program is running, i stop and restart the cron daemon but still dont see any answer. I read some mails from this list but my system still dont run my test job. I forget something...? Thanks for your time. Running FreeBSD_5.4-p16.