CRONTAB question
Dave Parker
dlparker at dlpinc.com
Thu Apr 20 23:29:14 CDT 2000
I always have to look up the sequence of the fields (man 5 crontab),
but I don't think you actually need to repeat the 8-17 five times.
That should be covered by the 1-5 in the 5th field. It probably doesn't
hurt, but I THINK it's redundant.
Bradley Miller wrote:
>
> I'm working on an experimental web cam project. I only want it to be live
> during the hours of 8 to 5 (business hours). Can I specify a range on my
> hours?
>
> Here's what my crontab entry is . . . it didn't balk, so I'm wondering if I
> did it right:
>
> * 8-17,8-17,8-17,8-17,8-17 * * 1-5 /usr/local/batch/uploadpic.sh
>
> Does this sound right? I was testing it today with this and it worked
> fine for uploading pics every minute:
>
> * * * * 1-5 /usr/local/batch/uploadpic.sh
>
> Thanks in advance!
>
> Bradley Miller, Programmer/webmaster
> AccessZone Design - www.accesszonedesign.com
> Blue Springs, Missouri office
> Phone: 816-228-3814 Fax: 559-663-4046
--
Dave Parker/DLP, Inc. dlparker at dlpinc.com www.dlpinc.com
More information about the Kclug
mailing list