Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Apr 2002 13:07:51 -0700
From:      Ryan Hill <rhill@xypoint.com>
To:        "'freebsd-questions@freebsd.org'" <freebsd-questions@freebsd.org>
Subject:   RE: stupid crontab syntax question
Message-ID:  <38985D9205A0D411A10500508B10DE6602997418@ebert.xypoint.com>

next in thread | raw e-mail | index | archive | help
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" <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?38985D9205A0D411A10500508B10DE6602997418>