rurtubia
11/6/2015 - 12:52 AM

Linux Daemons

Linux Daemons

cron-crontab

service       crond       status
                          opción
              servicios 
              app         restart
                          start
                          stop
                          reload
                          
*     *     *   *    *        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)

crontab 05 13 21 7 0 echo "hola mundo"

cat /etc/crontab



# For details see man 4 crontabs

# Example of job definition:
# .---------------- minute (0 - 59)
# |  .------------- hour (0 - 23)
# |  |  .---------- day of month (1 - 31)
# |  |  |  .------- month (1 - 12) OR jan,feb,mar,apr ...
# |  |  |  |  .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat
# |  |  |  |  |
# *  *  *  *  * user-name command to be executed


@reboot echo "hola mundo";



To see the logs in the modern way
[root@urtubia ~]# cat /var/log/cron-20151103