From owner-freebsd-questions@FreeBSD.ORG Wed Jun 27 08:54:38 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 548F516A41F for ; Wed, 27 Jun 2007 08:54:38 +0000 (UTC) (envelope-from pieter@degoeje.nl) Received: from smtp.utwente.nl (smtp2.utsp.utwente.nl [130.89.2.9]) by mx1.freebsd.org (Postfix) with ESMTP id CCAD813C487 for ; Wed, 27 Jun 2007 08:54:37 +0000 (UTC) (envelope-from pieter@degoeje.nl) Received: from lux.student.utwente.nl (lux.student.utwente.nl [130.89.170.81]) by smtp.utwente.nl (8.12.10/SuSE Linux 0.7) with ESMTP id l5R8sXUg003454; Wed, 27 Jun 2007 10:54:33 +0200 From: Pieter de Goeje To: freebsd-questions@freebsd.org Date: Wed, 27 Jun 2007 10:54:31 +0200 User-Agent: KMail/1.9.6 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200706271054.32569.pieter@degoeje.nl> X-UTwente-MailScanner-Information: Scanned by MailScanner. Contact helpdesk@ITBE.utwente.nl for more information. X-UTwente-MailScanner: Found to be clean X-UTwente-MailScanner-From: pieter@degoeje.nl X-Spam-Status: No Cc: dhaneshk k Subject: Re: crontab configuration in FreeBSd -6.2 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, 27 Jun 2007 08:54:38 -0000 On Wednesday 27 June 2007, dhaneshk k wrote: > Hi all > > I need to configure a crontab for a FreeBSD -6.2 box . > > > To test it , as root user I entered a line into the /etc/crontab > by using easyeditor as follows > 50 21 * * * root /root/testcron > > and I saved this.(cat /root/testcron is touch /root/desktop/Myfile) > > and I tried to do as root user this # /etc/rc.d/cron restart > > got O/P as > > Stopping cron. > Starting cron. > > > Then I tried to give #crontab -l But Output is as this > > don# crontab -l > crontab: no crontab for root > > why this message is it working fine ? ya not how can I list crontab -l > (the cronjobs for root) > > Pls provide your suggestions > > any way the Myfile is created by crontab , but why the message no > cronjob for root ? Because that's a different crontab. Each user (including root) has their own crontab. What you have just edited is the system wide crontab. The message stating "root's crontab for freebsd" in /etc/crontab is kind of confusing. HTH, Pieter de Goeje