From owner-freebsd-questions Thu Apr 18 13: 8:13 2002 Delivered-To: freebsd-questions@freebsd.org Received: from ebert.xypoint.com (ebert.xypoint.com [216.190.251.65]) by hub.freebsd.org (Postfix) with ESMTP id E390937B416 for ; Thu, 18 Apr 2002 13:08:07 -0700 (PDT) Received: by ebert.xypoint.com with Internet Mail Service (5.5.2655.55) id <2HDSLPWA>; Thu, 18 Apr 2002 13:07:52 -0700 Message-ID: <38985D9205A0D411A10500508B10DE6602997418@ebert.xypoint.com> From: Ryan Hill To: "'freebsd-questions@freebsd.org'" Subject: RE: stupid crontab syntax question Date: Thu, 18 Apr 2002 13:07:51 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2655.55) Content-Type: text/plain Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Kevin, Thanks for pointing me in the right direction, you're right on the command line, I forgot the -c switch and I needed 'crontab -e' to make the entry. Cripes its been a long time since I've used cron and it shows! Everything is fine now... Regards, 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 > -----Original Message----- > From: Kevin Kinsey, DaleCo, S.P. [mailto:kdk@daleco.biz] > Sent: Thursday, April 18, 2002 12:59 PM > To: Ryan Hill > Cc: questions@FreeBSD.ORG > Subject: Re: stupid crontab syntax question > > > 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" > To: "'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