lk/system/cronie.md

34 lines
500 B
Markdown
Raw Normal View History

2022-01-16 18:20:39 +00:00
---
title: "cronie"
2022-01-26 22:35:07 +00:00
tags: [ "Documentation", "System" ]
2022-01-16 18:20:39 +00:00
---
2020-01-02 00:04:35 +00:00
Various services from cron exist, e.g.
> sudo apt -y install cronie
start the cronie with
2022-01-26 22:35:07 +00:00
> sudo Systemctl start cronie
2020-01-02 00:04:35 +00:00
start a cron with
> cron -e
You can run a script with:
*/10 * * * * /home/pi/script.sh
... which would run every 10 minutes.
To run something as root, do:
> sudo crontab -e
For example, you can update the database, meaning searches with 'locate' command will be faster.
> */30 * * * * /usr/bin/updatedb