« New Feature Coming Soon | Main | Postmodernism Generator »

Cronjob Errors

Right, with any luck, the Columbia Continuum is up and running, though it's ugly as sin right now and needs to be beat about the head with some serious CSS work.

Since a technical hitch cost me two bloody hours last night, I'm going to put the details here, but don't read 'em if it's not your thing. (I need a new entry to make sure that the update function is working.) Thanks to Adam Sampson (author of Rawdog) for helping a newbie well beyond the call of duty.

I hate the UNIX text editor known as vi. To avoid it, I'd been editing a file called cronjoblist in Homesite. Then I'd upload the file and update my crontab file (the file that schedules things to automatically update) by using the command:

crontab cronjoblist

This was enormously foolish. As Alan explains:

There are three ways of representing newline characters in text files -- \n (the Unix way), \r\n (the Windows way) and \r (the MacOS way). Since cron is expecting lines to end with \n, it's reading the \r as an extra character, and running rawdog with "-w\r" as parameters; since rawdog has no idea what \r means as an option, it's giving the odd error message you're seeing.

So, until I can find my way around this problem, it's back to vi. Damn.

And a big thanks to Adam!

Comments

you're further along than I am; I don't even know what all that Unix stuff means!
What OS are you using again? When I run Linux (and that reminds me, I need to find a Linux mail client that implements a Baysean spam filter as nice as the one in Eudora 6 paid mode) I have a choice of text editors besides vi (or as I prefer, viLE...), all of which end lines in the accepted *nix fashion....
Assuming you're on a Unix machine with bash, you should just do crontab -e to edit. Vi is the worst. Any text editor that requires an entire book is useless, IMHO.
Forget Unix chit-chat, what I want to know is what the internet ever did wrong to deserve so many Columbia Law student blogs?
I never liked vi either. Emacs was always my favorite, although your pinky starts to hurt after a while, it is much more powerful.

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

NOTICE TO SPAMMERS, COMMENT ROBOTS, TRACKBACK SPAMMERS AND OTHER NON-HUMAN VISITORS: No comment or trackback left via a robot is ever welcome at Three Years of Hell. Your interference imposes significant costs upon me and my legitimate users. The owner, user or affiliate who advertises using non-human visitors and leaves a comment or trackback on this site therefore agrees to the following: (a) they will pay fifty cents (US$0.50) to Anthony Rickey (hereinafter, the "Host") for every spam trackback or comment processed through any blogs hosted on threeyearsofhell.com, morgrave.com or housevirgo.com, irrespective of whether that comment or trackback is actually posted on the publicly-accessible site, such fees to cover Host's costs of hosting and bandwidth, time in tending to your comment or trackback and costs of enforcement; (b) if such comment or trackback is published on the publicly-accessible site, an additional fee of one dollar (US$1.00) per day per URL included in the comment or trackback for every day the comment or trackback remains publicly available, such fee to represent the value of publicity and search-engine placement advantages.

Giving The Devil His Due

And like that... he is gone (8)
Bateleur wrote: I tip my hat to you - not only for ... [more]

Law Firm Technology (5)
Len Cleavelin wrote: I find it extremely difficult to be... [more]

Post Exam Rant (9)
Tony the Pony wrote: Humbug. Allowing computers already... [more]

Symbols, Shame, and A Number of Reasons that Billy Idol is Wrong (11)
Adam wrote: Well, here's a spin on the theory o... [more]

I've Always Wanted to Say This: What Do You Want? (14)
gcr wrote: a nice cozy victorian in west phill... [more]

Choose Stylesheet

What I'm Reading

cover
D.C. Noir

My city. But darker.
cover
A Clockwork Orange

About time I read this...


Shopping

Projects I've Been Involved With

A Round-the-World Travel Blog: Devil May Care (A new round-the-world travel blog, co-written with my wife)
Parents for Inclusive Education (From my Clinic)

Syndicated from other sites

The Columbia Continuum
Other Blogs by CLS students