Email Address Password
Remember Me

Or Create a (Free) Account.
2004JanFebMarAprMayJunJul Aug Sep Oct Nov Dec
2005 Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
2006 Jan Feb Mar Apr May Jun Jul Aug Sep Oct Oct Oct
2007JanFebMarAprMayJunJulAugSepOctNovDec2007
2008JanFebMarAprMayJunJulAugSepOctNovDec2008
2009JanFebMarAprMayJunJulAugSepOctNovDec2009
2010JanFebMarAprMayJunJulAugSepOctNovDec2010
2011JanFebMarAprMayJunJulAugSepOctNovDec2011
2012JanFebMarAprMayJunJulAugSepOctNovDec2012
2013JanFebMarAprMayJunJulAugSepOctNovDec2013

Wed 30th Nov 2011 @ 23:22 2011: Notes on Anacron

Traditional cron works as on Solaris. On RHEL5/OEL5 this is vixie-cron. On RHEL6, it's cronie.

RHEL5 Notes
RHEL6 Notes

Anacron runs on boot (in case it needs to run tasks now - such as if it had a 2am job and gets shutdown overnight). It used to get called by the regular cron, it is now controlled by /etc/anacrontab

/etc/anacrontab tells anacron to run cron.daily at "1 65 cron.daily" - ie, every 1 day, after 65 minutes - ie, 0105AM.
Similarly cron.weekly is run at "7 70" - do the weekly jobs at 0110AM every 7 days.
cron.monthly is run at "30 75" - every 30 days at 0115AM.

So, this mechanism controls when (on a typical system, up 24/7) the cron jobs get run.

Post a Comment               

Sun 27th Nov 2011 @ 22:32 2011: Brother HL4040CN Laser Printer - How to reset the toner counts to increase toner life

I found this information from a blog which Google's cache still remembers, but which is currently redirecting to some celebrity gossip magazine, so presumably the domain has expired, or something similar.

These instructions worked for my Brother HL4040CN colour laser printer. In Step 4, the "B.TNR" represents the black toner, "Y.TNR" is the yellow toner, "M.TNR" is the magenta toner, and "C.TNR" is the cyan toner, so you can choose which counters you would like to reset.

1)Open the front door – the message ‘Cover is Open’ will appear.

2) Press and hold the cancel button.

3) Press the Reprint button – the message ‘Reset Parts Life’ should appear. Release the Cancel button.

4) Then do the following:

B.TNR-H – Select ok, accepted should display. Press ^

B.TNR-S – Select ok, accepted should display. Press ^

Y.TNR-H – Select ok, accepted should display. Press ^

Y.TNR-S – Select ok, accepted should display. Press ^

M.TNR-H – Select ok, accepted should display. Press ^

M.TNR-S – Select ok, accepted should display. Press ^

C.TNR-H – Select ok, accepted should display. Press ^

C.TNR-S – Select ok, accepted should display. Press ^

5) Cancel

6) Close the front door.

1 Comment               

Sun 20th Nov 2011 @ 23:48 2011: steve unix

Of all things that I have tried to achieve, one thing that I never aimed for, but am still stupidly proud of, is that my shell scripting tutorial is the first hit, out of 19 million, for a google search of "steve unix".

google search steve unix

Post a Comment               

Thu 17th Nov 2011 @ 22:55 2011: Netmask Calculator

As mentioned previously, I wrote a Netmask Calculator for Android devices a while ago.

It seems to be faring well enough on the marketplace; the total installs are going up at a modest rate, despite no advertising at all.

Post a Comment               

Wed 9th Nov 2011 @ 02:59 2011: Book history

I've just been looking into the history of the Shell Scripting book. I'll probably forget what happened when, so here it is, for my own reference.

On 4th Feb 2008, Jenny Watson at Wiley first got in touch with me.

On 16th June 2008, I had two chapters ready for the publishers.

On 20th June 2008, my boss (Simon Stuart at Inteq) put the kaibosh on the whole thing.

On 4th June 2009, my employer (Inteq) went into liquidation, so he lost his rights to tell me what I can and can't do. I spent a year working as a contractor through an umbrella company, then formed my own company in March 2010.

On 7th August 2010 I got back in touch with Wiley.

On 23rd August 2010, Mary at Wiley got in touch with me,

On 19th October 2010, the book was approved by the publishers.

On 11th November 2010, the contract was agreed.

On 13th December 2010, Chapter 3 was approved, with some caveats.

After that, things started taking off. The book was published in August 2011.

2 Comments               

Steve's urandom blog
Share on Twitter Share on Facebook Share on LinkedIn Share on Identi.ca Share on StumbleUpon
My Shell Scripting Book:
    Shell Scripting, Expert Recipes for Linux, Bash and more
is available online and from all good booksellers:


DefectiveByDesign.org