CRONTAB ---> Kindly post your commends/Likes.
crontab command options
------------------------------
... crontab -e Edit/Create crontab file
crontab -l Display crontab file.
crontab -r Remove crontab file.
crintab file syntax
-------------------
* * * * * <command>
- - - - -
| | | | |
| | | | Day of the week Range--->(0-6) [Sunday=0]
| | | Month Range---> (1-12)
| | Day of month Range---> (1-31)
| Hour Range ---> (0-23)
Min Range---> (0-59)
* implies all legal values corresponding to that field.
Eg:
30 11 1 * * /home/prasanth/logBackup.sh
As per the above schedule logBackup.sh will run at every month (* in month field) Day 1 (1 in Day of the month) 11 Hours (11 in hour field) 30 mins (30 in min field)
Note: If an users name appears in the cron.deny file that user will not be able to run any crons, If an user exists in th ecron.allow file that user is allowed to run the cron
crontab command options
------------------------------
... crontab -e Edit/Create crontab file
crontab -l Display crontab file.
crontab -r Remove crontab file.
crintab file syntax
-------------------
* * * * * <command>
- - - - -
| | | | |
| | | | Day of the week Range--->(0-6) [Sunday=0]
| | | Month Range---> (1-12)
| | Day of month Range---> (1-31)
| Hour Range ---> (0-23)
Min Range---> (0-59)
* implies all legal values corresponding to that field.
Eg:
30 11 1 * * /home/prasanth/logBackup.sh
As per the above schedule logBackup.sh will run at every month (* in month field) Day 1 (1 in Day of the month) 11 Hours (11 in hour field) 30 mins (30 in min field)
Note: If an users name appears in the cron.deny file that user will not be able to run any crons, If an user exists in th ecron.allow file that user is allowed to run the cron
No comments:
Post a Comment