Skip to main content
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
Results tagged with
Search options answers only not deleted user 9058

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.

8 votes
Accepted

Is cron command supposed to work like this?

You don't need to call cron directly. Any commands you want to run need to be added to the crontab of the user they should run as. …
nohillside's user avatar
  • 104k
7 votes

crontab doesn't seem to recognize `~`

~ is a symbol shells automatically expand to $HOME, a standard /bin/sh (which cron uses to run the commands) does not need to support ~ expansion. …
nohillside's user avatar
  • 104k
3 votes

"crontab -e" failing under Monterey with "$EDITOR: No such file or directory"

The error message you get indicates that the EDITOR variable is set to the literal value $EDITOR: $ EDITOR='$EDITOR' crontab -e crontab: $EDITOR: No such file or directory crontab: "$EDITOR" exited wi …
nohillside's user avatar
  • 104k
3 votes
Accepted

Crontab -l command working. No other crontab command is working

You need to edit your crontab to make changes. Run EDITOR=nano crontab -e to use the nano editor for this. Your (initially empty) crontab will be shown and can be edited (e.g. by adding the line you …
nohillside's user avatar
  • 104k
2 votes

Trying to add cronjob results in ""LICENSE":0: bad minute"

You can't add a crontab entry by just running crontab <entry details>. In your case the shell expands the * with whatever filenames it finds in the current directory (which seems to be a file called L …
nohillside's user avatar
  • 104k
2 votes
Accepted

Mac mail mail from cron

You get mail from cron whenever a cron command fails. In such cases you can use crontab -l to see which commands cron executes. …
nohillside's user avatar
  • 104k
2 votes
Accepted

Where should I put cron jobs?

Both /etc and /usr are part of macOS and get mostly overwritten with each OS upgrade (with the exception of /usr/local). So you don‘t want to store your own content there. The canonical place for user …
nohillside's user avatar
  • 104k
1 vote
Accepted

Cronjob macOS does not work if set with a bash external script

There is no need to check whether there currently is a crontab installed or not. Just run (crontab -l 2>/dev/null; echo '@reboot bash /Users/user/myscript.sh') | crontab - to add the @reboot line to …
nohillside's user avatar
  • 104k
1 vote
Accepted

Why doesn't crontab run if screensaver is on?

/home is used by the automounter and can't be written to. Just try with another directory (eg /tmp).
nohillside's user avatar
  • 104k
1 vote
Accepted

Stop cron daemon "symmetrical.xm" error messages in Terminal mail

open Terminal run ls -l /Users/MyUsername/Library/symmetrical.xm/symmetrical.xm If you get an error of any kind (directory or file not found) run crontab -r to remove your crontab.
nohillside's user avatar
  • 104k