Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Cron is a time-based job scheduler found in most Unix-like computer operating systems, like macOS. Cron is driven by a crontab (cron table) file, a configuration file that specifies commands to run periodically on a given schedule. This tag should be use when dealing with any cron issues.
3
votes
Run Shell Scripts on a Schedule
Not that cron is “wrong” per se but it is not the “preferred” way.
However, as you indicated, launchd can be a pain to work with. … Not only does Keyboard Maestro have a feature to run scripts (or macros, etc) at a specific time or recurring every X minutes, but you can also use cron-style syntax if you want. …
3
votes
What is the difference among the various event schedulers for OS X / Darwin?
cron is still there because… well, because Apple hasn't killed it off yet, despite having deprecated it ages ago. … IIRC cron jobs do not run if the computer was asleep when it was supposed to run.
launchd is Apple's replacement for cron which adds a lot of flexibility to the scheduling of events on a Mac. …
3
votes
Accepted
What is the best approach to ejecting disk while in sleep mode, scheduled?
I think the Energy Saver suggestion is a good place to start:
» System Preferences » Energy Saver » Schedule and set it for, say, 30 minutes before you want to leave for work.
However, I would not …
3
votes
Accepted
launchd, how to run a command every 3 minutes, during working hours on a weekday?
TL;DR Summary: launchd is "better" than cron in many ways, but these sorts of repetitions are an example of one way where cron is easier than launchd. To do this in launchd is excessively verbose. … who know things like launchd and cron. …