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 5472

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.

1 vote

Running Cron with an updated Bash version

know the full proper path and not depend on startup and login files as that is much more light weight for cron) I’ll end with one last link on good customs for cron environment being intentionally different … Use cron to screencapture on Mountain Lion …
bmike's user avatar
  • 241k
2 votes

How can I execute sudo commands as a cron job?

It's a security risk, but you can enable the root user and run the command in root's cron. Alternatively, have you tried using sudo -s to get a "root shell" and making root's cron that way. … Depending on your OS level, you might not need to have root enabled as a user for it's cron to run. …
bmike's user avatar
  • 241k
4 votes

Cron script not executing on Mavericks

0,5,10,15,20 * * * * /usr/bin/logger "cron is working" That way you'll know that cron is running for the user in question and can focus on either starting cron or fixing your script so it runs in the … limited cron environment. …
bmike's user avatar
  • 241k
1 vote

How Can I Log Crontab File Writes

Open terminal and run this: sudo fs_usage | grep cron I'd run it using tmux or screen so that you can detach and check later. … Depending on how many cron jobs you have, this could generate a lot of messages and you'll want to not run it where a runaway process could cause harm. (backup, check filesystems for space, etc...) …
bmike's user avatar
  • 241k
2 votes

cronjobs do not run

grant permissions for cron and possible the terminal apps / command line tools to run on Catalina. check for full paths everywhere... consider putting your commands in a script so you can debug them and … avoid needing to escape characters like % or run cron in debug/test mode …
bmike's user avatar
  • 241k
1 vote

ssh-under-cron stops working in OS X 10.7 Lion

It's not fixing the cron issue, but is more stable as well as more people can help with it. …
bmike's user avatar
  • 241k
1 vote

Cron job fails due to sleeping wifi?

It's set to not sleep, but it also has launchd jobs (cron is fine too if you want to maintain that older scheduling method) that SSH in to the client Macs. … The clients then can have their cron tasks scheduled for when they wake. …
bmike's user avatar
  • 241k
9 votes
Accepted

How do I know if a time machine backup is running?

The canonical way to check status of time machine is to use the utility and check status or for newer os check the current phase only: tmutil status tmutil currentphase Now, you have to process t …
bmike's user avatar
  • 241k
0 votes

"cron" processes piling up

Have you granted full disk access to your cron executable? On Catalina, how can a cronjob get permission to touch files on a USB disk? …
bmike's user avatar
  • 241k
3 votes

cron lacks permissions to run a script

It looks like the proper two programs to give full access to are: cron terminal.app See rsync in cron on Catalina no longer working …
bmike's user avatar
  • 241k
2 votes

cron queueing bash and python scripts

cron and "command not found" cronjobs do not run Getting unknown command error when trying to run script via cron
bmike's user avatar
  • 241k
2 votes

Shell command works fine as is, but not when executed from crontab. What's the difference?

Might you be running a version of macOS where cron needs to be granted disk access? On Catalina, how can a cronjob get permission to touch files on a USB disk? …
bmike's user avatar
  • 241k