Skip to content

Instantly share code, notes, and snippets.

@tbotalla
Last active September 25, 2018 17:34
Show Gist options
  • Save tbotalla/3b96cef99095d68084437e18ea03a030 to your computer and use it in GitHub Desktop.
Save tbotalla/3b96cef99095d68084437e18ea03a030 to your computer and use it in GitHub Desktop.
Comandos para automatizar tareas al iniciar GNU/Linux con Crontab
crontab -e Editar archivo de crontab, crea uno nuevo si no existe
crontab -l Listar tareas crontab
crontab -r Eliminar archivo con las tareas crontab
crontab -v Muestra la ultima vez que se edito el archvio de crontab
* * * * * command to be executed
- - - - -
| | | | |
| | | | +----- day of week (0 - 6) (Sunday=0)
| | | +------- month (1 - 12)
| | +--------- day of month (1 - 31)
| +----------- hour (0 - 23)
+------------- min (0 - 59)
Ejemplo:
A line in crontab file like below removes the tmp files from /home/someuser/tmp each day at 6:30 PM.
30 18 * * * rm /home/someuser/tmp/*
Ejecutar cada vez que se rebotea
@reboot sh /home/pi/fuchsbrauProcesar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment