Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Apr 2002 14:58:35 -0500
From:      "Kevin Kinsey, DaleCo, S.P." <kdk@daleco.biz>
To:        "Ryan Hill" <rhill@xypoint.com>
Cc:        <questions@FreeBSD.ORG>
Subject:   Re: stupid crontab syntax question
Message-ID:  <009401c1e713$6cf0cd80$14ec910c@daleco>
References:  <38985D9205A0D411A10500508B10DE6602997415@ebert.xypoint.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Funny, if it works in /bin/sh, it should run with
cron.  Check your command in /sh and
see if you get desired result.

Don't know about logrotate,  but several binaries
use the -c switch to indicate the .conf file, so have
you tried ....

0    1    *    *    1-7    /usr/local/sbin/logrotate -c
/usr/local/etc/logrotate.conf

Just a guess, based on a couple of entries in my crontab.  As
for cron itself, the entry above should run it daily at 0100 hours.

I found some cron help from an article on the web, don't know
where it was, but have a hard copy here.  Try googling
"Mo Budlong Unix Insider cron basics" and see if it comes up.

Best of luck,

Kevin Kinsey

----- Original Message -----
From: "Ryan Hill" <rhill@xypoint.com>
To: "'freebsd-questions@freebsd.org'" <freebsd-questions@FreeBSD.ORG>
Sent: Thursday, April 18, 2002 2:44 PM
Subject: stupid crontab syntax question


> ok,
>
> I know this is a newb question, but can someone tell what the crontab
syntax
> is for the following command:
>
> /usr/local/sbin/logrotate /usr/local/etc/logrotate.conf
>
> This command should run daily.  I've tried a bunch of different variations
> and the man page for crontab sucks.
>
> Thanks,
>
> Ryan Hill, MCSE
> Manager, Technical Support (aka IT Ninja)
> Corporate Information Systems
> TeleCommunication Systems, Inc. (TCS) - http://www.telecomsys.com
> v: 206.792.2276 - f: 206.792.2001
>
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
>


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?009401c1e713$6cf0cd80$14ec910c>