Crontab

Comandos
@hourly 0 * * * *
@daily 0 0 * * *
@weekly 0 0 * * 0
@monthly 0 0 1 * *
@yearly 0 0 1 1 *
Instalar
apt-get install cron
Estado
/etc/init.d/cron status
systemctl status cron
Iniciar
/etc/init.d/cron start
systemctl enable cron
systemctl start cron
Parar
/etc/init.d/cron stop
systemctl disable cron
systemctl stop cron
Ver
crontab -l
Editar
Con crontab:
crontab -e
crontab -e -u root
Ejemplo:
0 13 * * * /usr/bin/python3.9 RUTA
Con vi:
vi /etc/crontab
Ejemplo:
0 13 * * * root /usr/bin/python3.9 RUTA