Talk:Cron

From Wikipedia, the free encyclopedia

This is the talk page for discussing improvements to the Cron article.

Article policies
Wikipedian An individual covered by or significantly related to this article, Cron, has edited Wikipedia as
Rlb408 (talk · contribs)
This article is within the scope of Computing WikiProject, an attempt to build a comprehensive and detailed guide to computers and computing. If you would like to participate, you can edit the article attached to this page, or visit the project page, where you can join the project and/or contribute to the discussion.
B This article has been rated as B-Class on the quality scale
??? This article has not yet received an rating on the importance scale.

Contents

[edit] History

I wrote this article, adapting from something written a while back, because, to me, cron is the main topic, not crontab. I am sketchy on what came before V7 and "Kernighan's cron" as we called it at Purdue and also a bit sketchy on the subsequent implementations. I hope others can round this out. I didn't really know that my cron got into "the real Unix" until I took a job at SGI in 1990 and looked at the source code and instantly recognized the awful coding style (no spaces, lots of asterisks in comments) I used as a grad student. I think Keith wrote the hardest part: figuring out the NEXT minute in the future that any particular crontab entry should be run, with out walking forward minute-by-minute asking the binary question, "now?" It took a while to debug that.

A few years back I tried to convince the Purdue Research Foundation that they should claim title to the Unix cron but we didn't save notebooks or even e-mails from those days...this was 1979!! So they chose to just let it fall by. I suspect a lot of code in Unix was written by grad students like me and Keith. Another one of those "warm up project" I designed was given to Chris Kent/Kantarjiev and the "pg" command in Unix came out of it. But everyone uses "more" now...though I believe pg was the first paginator that would allow you to go backwards, even if you piped output to it!

I apologize for any deviations from standards and style and decorum and trust the community will correct these or instruct me on how to do so...or both!

Rlb408 02:11, 9 February 2007 (UTC)

[edit] Not the crontab article

Unsure why someone added the description of the crontab fields at the top of the article. This topic is cron, not crontab. The format of cron's spec file is incidental to the topic and I think distracts. Since there is a separate article on crontab and this artile is about the history and algorithm, can we just delete the crontab format description from here? As an analogy, if there were an article about compiler optimization algorithms, would you put a description of the syntax of the language itself in that article? How very odd.

Rlb408 07:32, 17 February 2007 (UTC)

[edit] cron and DST changes

Is Vixie cron the only cron that can not tolerate changes to daylight savings time rules while running? (See http://doughboy.wordpress.com/2007/03/14/vixie-cron-and-the-new-us-dst/.) If so, maybe a note belongs there. If it affects many crons, then a note should go here.--Theodore Kloba 13:59, 26 March 2007 (UTC)


[edit] apparent crontab inconsistency

I will leave to others the editorial decision as to whether the crontab format is appropriate to include in the cron entry. However the documented range of 0-6 and the statement that either 0 or 6 conveys a Sunday for DOW (day of week) appears to be contradicted by the statement that both 0 and 7 are considered Sunday, although 7 is considered trayf* on AIX manpages.

I find it hard to believe that 0, 6 and 7 are all intended. A Unix guru might be able to verify this point in relation to difrferent Unix flavors.

--Ed Smiley

[edit] "... on a 1 MIP system ..."

What does MIP mean in the text? It's wikilink goes to a disambiguation page whose entries don't make it obvious (for me). Could someone fix the wikilink so it goes to a page describing the "MIP" being talked about? --Zabadab (Talk) @ 12:37, 27 May 2007 (UTC)

Fixed it. IPS stands per instructions per second, and the M stands for million. Sometimes people get confused and think it's 2 MIPS but 1 MIP, but, if you think about it, that's a wee mistake. Nicol (Talk) 14:01, 30 May 2007 (UTC)

[edit] Acronym

"CRON" is an acronym that stands for "Command Run ON"

That's probably not right. Sounds too much like "Unix System Resources", "Extended Tool Chest", and other such poor attempts to explain Unix terms. --193.77.238.223 14:24, 26 July 2007 (UTC)

[edit] Code Examples

It would be great if someone could include what different commands you can set a cron job up to. I had to spend too much time trying to figure out how to run a php script once a day...

[edit] Merge

There's no reason for the current split. The articles are inextricably linked and short enough that a merge would be a good idea. Chris Cunningham 17:56, 29 August 2007 (UTC)

[edit] In "See also"...

Might and Magic II: Gates to Another World, which is set in a land called Cron

...does this really belong here? If anywhere, it should be at the top of the page, or in a disambiguation page. Warriorness (talk) 07:58, 19 December 2007 (UTC)

Nope. Moved. Chris Cunningham (talk) 13:48, 19 December 2007 (UTC)

[edit] Sketch for rework

Note to self or others: here is what I'd expect the article to say, if I directed one of my curious co-workers to it:

  • What it is in simple terms (lets you schedule commands to run periodically, without being logged in).
  • That it is enabled by default on most or all Unices.
  • What system administrators use it for (backups, cleanup, indexing ...)
  • What normal users use it for, and that they may not be allowed to.
  • The user interface (crontab(1), the file format, and the command's output mailed to the owner).
  • What the equivalent on Windows (if any) is called.
  • A reference to at/atd (Oh, it's there. Good.)
  • The history/algorithm stuff as-is, but not at the top of the article.

JöG (talk) 22:33, 28 February 2008 (UTC)

[edit] Wikipedia is not a Unix reference manual

Just a matter of opinion, but the value of wikipedia is that it captures material that is not collected uniformly elsewhere. Based on this thinking, I prefer that we not turn it into a Unix or Linux reference manual; that will diminish its unique value. If I want to learn how to use cron or write a crontab file, I can look it up in any of the hundreds of online reference manuals or simply type "man crontab" in a shell window.

I would like this article and others like it to tell the back story. You're not going to find this in any reference manual. The article should address questions such as

  • where did this come from?
  • what are its inner workings?
  • what is the technical basis underlying it?
  • what, if any, controversy is there?

Imaging your son or daughter or niece or nephew was to write an essay on "how did such-and-such come about" - would a reference manual page help? Not much. Similarly, I think it is important that new developers in the present day fantastic flurry of open source understand that even something as widely used as the Unix cron was started by one grad student, joined by another, in the 70's no less.

So, to me, the value of wikipedia, specifically concerning cron, is that the distinctions of the various crons are not widely known and that the Unix version is algorithmly distinct from all of the others. Do anyone care about that? Very few people, I suspect, but that applies to so many wikipedia articles.

Let's leave the reference manual content in the reference manual or some "wikiUnixReference" site.

Rlb408 (talk) 19:39, 13 April 2008 (UTC)