Date: Fri, 24 Mar 2006 13:03:39 -0800 From: Demian <lists@dlfws.net> To: "Rodrigo G. Tavares de Souza" <rodrigo@sensorsistemas.com.br> Cc: freebsd-questions@freebsd.org Subject: Re: crontab doesn't work Message-ID: <44245EAB.1020905@dlfws.net> In-Reply-To: <44245730.9030509@sensorsistemas.com.br> References: <44245730.9030509@sensorsistemas.com.br>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44245EAB.1020905>