Tuesday 21 January 2020

Crontab six fields


Crontab file consists of command per line and have six fields actually and separated either of space or tab.
The beginning five fields represent time to run tasks and last field is for command.
1)Minute (hold values between 0-59)
2)Hour (hold values between 0-23)
3)Day of Month (hold values between 1-31)
4)Month of the year (hold values between 1-12 or Jan-Dec, you can use first three letters of each month’s name i.e Jan or Jun.)
5)Day of week (hold values between 0-6 or Sun-Sat, Here also you can use first three letters of each day’s name i.e Sun or Wed. )
6)Command Or Tasks

No comments:

Post a Comment