- /etc/crontab
1 CentOS 6 기본값[ | ]
text
Copy
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/
# 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
- 자리별 의미: 분 시 일 월 요
- 리눅스 초기기본설정은 /etc/anacrontab 참고
2 1.10-8 기본값[ | ]
- crontabs-1.10-8
text
Copy
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/
# run-parts
01 * * * * root run-parts /etc/cron.hourly
02 4 * * * root run-parts /etc/cron.daily
22 4 * * 0 root run-parts /etc/cron.weekly
42 4 1 * * root run-parts /etc/cron.monthly
- 의미
- 01 * * * * (매시 1회) 매시 1분 수행
- 02 4 * * * (매일 1회) 매일 4시 2분 수행
- 22 4 * * 0 (매주 1회) 매주 일요일 4시 22분 수행
- 42 4 1 * * (매월 1회) 매달 1일 4시 42분 수
3 같이 보기[ | ]
편집자 Jmnote
로그인하시면 댓글을 쓸 수 있습니다.