Last active
September 25, 2018 17:34
-
-
Save tbotalla/3b96cef99095d68084437e18ea03a030 to your computer and use it in GitHub Desktop.
Comandos para automatizar tareas al iniciar GNU/Linux con Crontab
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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