🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #44012

Re: My cronjobs run 60 times an hour, HELP!

#44012
From: Paul Neubauer
Date: Thu, 10 Feb 2000 00:00
28 lines
1726 bytes
In article <87v1ns$p69$1@news.rocsoft.net>, bmeyer@rocsoft.net 
wrote...
>I have two cronjobs, which when they run, seem to run every sixty seconds.
>The run as user news (it's a news server) and the time info is:
>crontab -e
>* 2 * * * egrep 'massive regexp'
>* 3,15 * * * /usr/local/news/bin/somprogram
>...
>Any clues are appreciated.

man crontab

Especially read the part crontab Entry Format where the fields are 
described.  Note that the first field is minute and you have a * 
there, so the first line with the massive regexp says it should 
execute at each minute from 2am to 3 am (i.e., when the hour value is 
2) and the second someprogram should execute each minute from 3am to 
4am and 3pm to 4pm (i.e., when the hour value is 3 or 15).  Put a 
value there instead of the * and each should only execute once at the 
specified hours.

	Paul
-- 
Paul Neubauer          prn@bsu.edu
http://home.bsu.edu/prn/
PGP Public Key at http://home.bsu.edu/prn/key.html

Technical Details
Message-ID: <MPG.130cd7e347cab46b989830@news.bsu.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <87v1ns$p69$1@news.rocsoft.net>

Show Full Headers
Complete Article Headers
Message-ID: <MPG.130cd7e347cab46b989830@news.bsu.edu>
Subject: Re: My cronjobs run 60 times an hour, HELP!
Date: Thu, 10 Feb 2000 00:00:00 +0000
From: Paul Neubauer <prn@bsu.edu>
References: <87v1ns$p69$1@news.rocsoft.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 584222393
X-Trace: portal.bsu.edu 950209640 147.226.83.211 (Thu, 10 Feb 2000 14:07:20 EST)
Organization: Ball State University
NNTP-Posting-Date: Thu, 10 Feb 2000 14:07:20 EST
Newsgroups: comp.os.linux.misc,news.software.nntp