Thread View: news.software.nntp
4 messages
4 total messages
Started by Bruce D. Meyer
Thu, 10 Feb 2000 00:00
My cronjobs run 60 times an hour, HELP!
Author: Bruce D. Meyer
Date: Thu, 10 Feb 2000 00:00
Date: Thu, 10 Feb 2000 00:00
19 lines
1487 bytes
1487 bytes
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 I suspect I am creating a Denial of service attack on my self as I do see 'for unavailable out of resources' (or something like that) messages sometimes. And these two puppies both email me their results, and I get 60 emails minimum for each one, each time they run, and they seem to run every minute during the hour that they are called. Any clues are appreciated.
Re: My cronjobs run 60 times an hour, HELP!
Author: David Vondrasek
Date: Thu, 10 Feb 2000 00:00
Date: Thu, 10 Feb 2000 00:00
22 lines
1356 bytes
1356 bytes
On Thu, 10 Feb 2000 13:58:18 -0500, "Bruce D. Meyer" <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 This should be 0 2 * * * egrep 'massive regexp' 0 3,15 * * * /usr/local/news/bin/somprogram The " * " is causing your problems -- David -= http://www.davidv.net =-
Re: My cronjobs run 60 times an hour, HELP!
Author: Paul Neubauer
Date: Thu, 10 Feb 2000 00:00
Date: Thu, 10 Feb 2000 00:00
28 lines
1726 bytes
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
Re: My cronjobs run 60 times an hour, HELP!
Author: Ron Muzzi
Date: Mon, 14 Feb 2000 00:00
Date: Mon, 14 Feb 2000 00:00
32 lines
1669 bytes
1669 bytes
Bruce, If you haven't figured this out by now, you are telling cron to run every sixty seconds during hour 2 and hours 3 and 15. You need to simply add the minutes to your table, e.g. 0 2 * * * egrep 'massive regexp' 30 3,15 * * * /usr/local/news/bin/somprogram Ron, Michigan, USA "Bruce D. Meyer" 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 > > I suspect I am creating a Denial of service attack on my self as I do see > 'for unavailable out of resources' (or something like that) messages > sometimes. > > And these two puppies both email me their results, and I get 60 emails > minimum for each one, each time they run, and they seem to run every minute > during the hour that they are called. > > Any clues are appreciated.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads