From owner-freebsd-questions@FreeBSD.ORG Fri Mar 24 21:03:55 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 8B38B16A425 for ; Fri, 24 Mar 2006 21:03:55 +0000 (UTC) (envelope-from lists@dlfws.net) Received: from host90.ipowerweb.com (host90.ipowerweb.com [66.235.220.190]) by mx1.FreeBSD.org (Postfix) with SMTP id 85D2343D5E for ; Fri, 24 Mar 2006 21:03:43 +0000 (GMT) (envelope-from lists@dlfws.net) Received: (qmail 1381 invoked from network); 24 Mar 2006 21:04:52 -0000 Received: from unknown (HELO ?IPv6:::1?) (67.20.91.10) by host90.ipowerweb.com with SMTP; 24 Mar 2006 21:04:52 -0000 Message-ID: <44245EAB.1020905@dlfws.net> Date: Fri, 24 Mar 2006 13:03:39 -0800 From: Demian User-Agent: Thunderbird 1.5 (X11/20060217) MIME-Version: 1.0 To: "Rodrigo G. Tavares de Souza" References: <44245730.9030509@sensorsistemas.com.br> In-Reply-To: <44245730.9030509@sensorsistemas.com.br> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: crontab doesn't work 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: Fri, 24 Mar 2006 21:03:55 -0000 Rodrigo G. Tavares de Souza wrote: > Hi, > > Do I have to start something to crontab works? > > configuration file: > # MIN HOUR DAY/MONTH MONTH DAY/WEEK USER COMMAND > 59 23 * * * root > "/usr/local/etc/sarg/make-report" > 0 0 * * 0 squid > "/usr/local/etc/sbin/squid -k rotate" > > It should generate a report every day, and clear the log file every > week, but it isn't hapaning! > What do I suppose to do? > Hello, I checked my crontabs and I don't have double quotes around the path/script name. You could try to remove them. Do the scripts work if you run them from the command line? To check if cron is running, issue this command: ps auwx | grep cron The output should look something like this: root 421 0.0 0.2 1312 896 ?? Is 8Mar06 0:05.41 /usr/sbin/cron -s If cron isn't running, try this: /etc/rc.d/cron start Hope this helps, Demian