* * * * * /usr/script.sh
Minute (0 to 59)
Hour (0 to 23)
Day of month (1 to 31)
Month (1 to 12) or Jan, Feb,...
Day of week (0 to 6) (Sunday=0) or Sun, Mon, Tue,…
The asterisk (*) operator specifies all possible values for a field. e.g. every hour or every day.
The comma (,) operator specifies a list of values, for example: "1,3,4,7,8".
The dash (-) operator specifies a range of values, for example: "1-6", which is equivalent to "1,2,3,4,5,6".
The slash (/) operator, can be used to skip a given number of values. For example, "*/3" in the hour time field is equivalent to "0,3,6,9,12,15,18,21"; "*" specifies 'every hour' but the "/3" means that only the first, fourth, seventh...and such values given by "*" are used.
Copyright ©2022 coderraj.com. All Rights Reserved.