Tag Archives: Linux

So alike, yet so different

I’ve recently fallen into the world of Mac OS X. (Fallen, pushed; what is difference?)

I keep getting caught out by the little things that are just slightly different to what I’m used to in Linux.

Take the most recent example: the mail command. I had a little anacron script set up on my Ubuntu box that would generate a summary of a previously-unseen messages in a user’s Gmail spam folder, and send it to that user. (Mostly because Mrs E kept forgetting to check hers.)

While I was perusing the mail man page on Mac OS X, and reading up on various options on Google, I found that the Mac version had a useful -E switch that would allow it to quietly abort if there was no message body, saving me the hassle of having to find a recent port of moreutils so that I could use the ifne command.

The thing that got me stuck for ages was trying to find a replacement for the -a switch in the GNU/Linux version of mail, which allowed the insertion of arbitrary headers, and was useful for setting the sender to something appropriate.

Eventually, after much reading of man pages and search results, I realised that the answer had been staring me in the face for ages, I just wasn’t doing it correctly because the order of the parameters became more important:

echo Wibble | mail -s "Subject goes here" -r "<>" -F "Mail Sender"

That was harder than expected…

(Note to self: WordPress doesn’t tell you that it’s stripping out the content in angle brackets that you’ve just retyped three times…)

Leave a comment

Posted by on Tuesday 13 March 2012 in Geeky stuff


Tags: , , , ,

Wot no widget?

Curses. I wanted to put my Nike+ widget on my blog to show off my lowly running achievements, but doesn’t allow Flash (amongst other things).

Mind, the Nike+ website seems to be so flaky that it probably wouldn’t work half the time. Or maybe it just doesn’t like Google Chrome, or trying to run the Flash components on Linux. It’s so broken at the moment that I can’t even get to my profile page to find the correct URL to add in here somewhere. Pffft.

Edit: I’m pretty sure the problem with the Nike+ website is a combination of issues with Google Chrome (it often doesn’t render at all correctly the first time it’s loaded, whatever the operating system), exacerbated by problem with Flash on Linux. Something to investigate when I get a chance, although there are plenty of people on the Nike+ forums complaining about problems with Chrome.

Leave a comment

Posted by on Monday 1 March 2010 in Geeky stuff


Tags: , ,