On Sat, 2003-09-27 at 03:45, Tom wrote:
> On Sat, Sep 27, 2003 at 03:13:45AM -0500, Ron Johnson wrote:
> > On Sat, 2003-09-27 at 02:54, [EMAIL PROTECTED] wrote:
> > > On Fri, Sep 26, 2003 at 09:47:07PM +0200, Stefan Waidele jun. wrote:
> > > > Howell Evans wrote:
> > > 
> > > That's amazing; I would have expected cron to have information to know 
> > > a priori when to wake up, rather than "polling"...
> > 
> > Waking up once a minute (which is a signal itself) to spend a 1/2
> > second reading some 5 line (yes, yes, they can be longer) text 
> > files is a *lot* simpler than having a signaling system for each 
> > crontab file.
> 
> I figured that is the argument -- too much work for too little payoff -- 
> and that's okay!
> 
> > 
> > > At the least it could optimize out obviously simple cases...
> > 
> > Like what?
> > 
> 
> Like the empty set.
> 
> Think about it: if a guy tells you to call him every hour, and a guy 
> tells you to call him every fifteen minutes, do you think every minute 
> about who to call?

No need for cron to "think": it's instructions are to wake up once
a minute, and look in a predefined set of subdirectories, forking
commands if files exist, and the time is right.  If there are no 
files in the directory, it does nothing.  No problem.


-- 
-----------------------------------------------------------------
Ron Johnson, Jr. [EMAIL PROTECTED]
Jefferson, LA USA

"Oh, great altar of passive entertainment, bestow upon me thy 
discordant images at such speed as to render linear thought impossible"
Calvin, regarding TV


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to