Mac crontab: Creating MacOS startup jobs with crontab, er, launchd

Mac OS X crontab FAQ: How do I run a Unix job (or shell script) through the OS X crontab facility? I keep trying to edit my Mac crontab file, but my Mac won't save my crontab changes, or run my program.

Mac OS X - crontab, launchd, and launchctl

As of this writing (updated in 2014), the Mac crontab command seems to be deprecated on Mac OS X, and the Apple documentation encourages you to use their "Mac launchd" facility. Here's a blurb from the Mac OS X crontab man page:

Apple's new Mac OS X antivirus/malware business

Hmm, it looks like there might be more than one reason for Apple retiring their famous Mac/PC commercials -- turns out they've quietly gotten into the malware/antivirus business.

MacWorld reports that Apple has quietly snuck an anti-malware (antivirus) update into the latest round of Mac OS X Snow Leopard updates. An antivirus program was included in Snow Leopard, and last week's Snow Leopard update included an update to the Mac OS X antivirus definition file (a simple Mac OS X plist file).

The MacOS launchd plist format

Mac OS X launchd plist FAQ: Can you share some Mac OS X launchd/launchctl plist file format examples?

I started to write a long tutorial on the Mac OS X launchd plist format, but I think an easier way (for me) is to point you to a couple of references that explain the launchd plist format fairly well.

MacOS launchd plist StartInterval and StartCalendarInterval examples

Mac OS X launchd plist FAQ: Can you share some examples of how to use the Mac OS X launchd plist StartInterval and StartCalendarInterval keys?

Here's a quick look at the Mac OS X launchd StartInterval and StartCalendarInterval keys. These two keys can be used to represent time values in a Mac launchd plist file, and many people have questions about them.

Mac OS X launchd plist StartInterval examples

The general syntax for the Mac OS X launchd plist StartInterval key is shown here:

MacOS ‘launchd’ examples (launchd plist example files)

Mac OS X launchd FAQ: Can you share some Mac launchd examples (also written as launchd plist examples, or launchctl examples)?

In an earlier tutorial (Mac OS X startup jobs with crontab, launchctl, and launchd) I demonstrated how to use the Mac OS X launchd facility instead of cron to run what would normally be a cron (crontab) job. As I started working with launchd and launchctl, I realized it would probably be helpful to see several different launchd examples, specifically launchd plist file examples.