aliases:
- crontab
tags:
- Type/Tech/Platform/Nix
- area/tech/nix
- seed
publish: true
version: 1
dateCreated: 2022-10-04, 08:49
dateModified: 2024-03-01, 10:59
from:
- "[[Nix]]"
related:
- "[[Shell]]"
- "[[Automation]]"
- "[[macOS|Mac]]"
- "[[Launchd]]"
contra:
to:
![]() |
The Cron command-line utility is a job scheduler on Unix-like operating systems. Users who set up and maintain software environments use cron to schedule jobs, also known as cron jobs, to run periodically at fixed times, dates, or intervals. It typically automates system maintenance or administration—though its general-purpose nature makes it useful for things like downloading files from the Internet and downloading email at regular intervals. |
---|---|
wikipedia:: Cron |
cron
Tool crontab
-l
For security reasons, you don't have access to the file itself and must edit with the crontab tool - crontab -e which will open up the crontab in an editor which can be defined with:
export VISUAL=code
VISUAL=vim
instead./etc/crontab
/usr/lib/cron/tabs/...
Jobs run through cron, or systemd startup scripts aren't run in the same runtime environment that you have on your desktop. systemd startup scripts are run as root