CRONJOBS

CRONJOBS

If user wants to execute particular task at specified time, in that scenario cronjobs are used. Cronjobs are similar to schedular in windows.

 

Syntax:

               Minutes              Hour                    DayOfMonth                     Month                 Weekdays

               [0 - 59]          [0 - 23]                        [1 - 31]                             [1 - 12] [0-6] or [sun-sat]

 

Commands:

1. crontab -l:

               It is used to list the crons in the system.


2. crontab -e:

               It is used to edit the crons in the system.


3. crontab -r:

                 This command is used to remove all set crons from the system.

Comments