Subject: Re: [htdig] Job scheduling (cron doesn't seem to be enough)
From: Jeff Mandel (email@example.com)
Date: Tue Jul 25 2000 - 10:16:36 PDT
You could try to nice it to a really low priority. It would still be running,
but the system would schedule it as it has time, so it shouldn't interfere with
your other running processes.
You would then have to make a script to check for that process and nice it -
cron can do that for you at 6am. Then you would have to customize your htdig
runner check to see if htdig is already running before it ran again.
There might be another way to suspend it, and then bring it back to life with
the right signals. I'll defer to the list on that.
Hunter Morris wrote:
> That's similar to what I have now. What I'm trying to achieve is a way to
> suspend the rundig script at 6am the next day if it's still going, then
> continue execution at 9pm.
> Jeff Mandel wrote:
> > I run the rundig script every night at 2am with this:
> > 0 2 * * * /usr/local/htdig/bin/rundig
> > 9pm would be
> > 0 21 * * * /usr/local/htdig/bin/rundig
> > You could just run htdig with /usr/local/htdig/bin/htdig if you don't like
> > rundig script.
> > Is this what you are after?
> Hunter Morris wrote:
> > Hey everyone,
> > I've been wrestling with a job scheduling dilemma. I'm not a *nix guru by
> > any means, but I know the basics of the cron daemon, and can't seem to
> > figure out a solution to the following problem. I've consulted the mailing
> > list, and nobody appears to have mentioned this particular problem.
> > me if it has been addressed ... no need for flames)
> > I want to schedule the digger to run only during off-peak hours (i.e.
> > between 9pm and 6am). The main reason for this is that the set of
> > I wish to index is rather large, and the digger takes longer than 9 hours
> > complete the operation. I have the server_wait_time set to 60 seconds to
> > minimize network activity, and that isn't really an option I'm at liberty
> > change.
> > I may be completely incompetent and cron can do this perfectly well, but I
> > can't seem to find any documentation that lends a clue. Does anybody have
> > suggestion as to another scheduling utility I could try or a way to
> > manipulate crond into such an act?
> > Thanks,
> > Hunter Morris
> > Alliance Systems, Inc.
> > http://www.alliancesystems.com
> > ------------------------------------
> > To unsubscribe from the htdig mailing list, send a message to
> > firstname.lastname@example.org
> > You will receive a message to confirm this.
To unsubscribe from the htdig mailing list, send a message to
You will receive a message to confirm this.
This archive was generated by hypermail 2b28 : Tue Jul 25 2000 - 00:15:02 PDT