startup

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

Table of Contents1 - macOS: crontab, launchd, and launchctl2 - Running a simple command every minute with Mac launchd3 - 1) Move to the $HOME/Library/LaunchAgents directory4 - 2) Create a Mac plist file to describe your job5 - 3) Tell MacOS about your Mac plist launchd file6 - 4) How Mac launchd works with system reboots7 - An important note about root and sudo access8 - MacOS launchd, launchctl, and plist resources9 - MacOS startup jobs: cron and crontab, launchd and launchctl

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

Back to top

macOS: crontab, launchd, and launchctl

Way back when (~2012-2014), I found that the Mac crontab command was deprecated on MacOS, and the Apple documentation encouraged you to use their launchd facility. Here’s a blurb from Apple's crontab man page:

“Darwin note: Although cron(8) and crontab(5) are officially supported under Darwin, their functionality has been absorbed into launchd(8), which provides a more flexible way of automatically executing commands. See launchctl(1) for more information.”

How to start a Play Framework application running as a service on Ubuntu 16.04

As a relatively brief note, this seems to be the correct way to start a Play Framework application as a service on an Ubuntu 16.04 system.

A shell script to start your Play application

First, you need to create a little Unix shell script that runs the startup command for your Play Framework application. I created a Play application for a website named kbhr.co, so I cd into the directory for that website:

This is a page from my book, “A Survival Guide for New Consultants”

How I started a multi-million dollar consulting firm

“When it’s time to be a general, be a general.
When it’s time to be a monk, be a monk.”

(Author unknown)

A friend of mine is currently unemployed, and as I've talked to her about ways to approach her situation, I'm reminded of how I started Mission Data.

DispatchHealth - Denver, Colorado Startup Business of the Year

A company named DispatchHealth just won an award for the 2016 Denver, Colorado “Startup Business of the Year,” as awarded by the Denver metro Chamber of Commerce. Per their website, “DispatchHealth is bringing back the house call. Our skilled medical team arrives with the tools necessary to provide simple to advanced healthcare in the home or workplace.”

The Everything Store

I just learned about the book, The Everything Store: Jeff Bezos and the Age of Amazon, while reading this article, The Next Amazon is Probably Failing Right Now. I’ve only read the Kindle Preview and a few random pages so far, but it looks very good, and it’s highly rated, with 889 reviews. From what I’ve read so far, it’s safe to say that it tells the story of Amazon’s history, and the author really seems to know Mr. Bezos and Amazon.