IT 개발/OS-LINUX
crontab 옵션
행복구슬
2012. 8. 29. 18:28
참고문서 : http://panic910.tistory.com/27\
crontab [ -u user ] file
crontab [ -u user ] { -l | -r | -e }
-l : 현재 cron table을 보여 줌
-r : 현재 cron table을 삭제
-e : 현재 cron table을 편집
-u user : user 사용자에 대해서 crontab 작업을 수행한다.
cron table의 각 필드값 설명
| 분 | 시간 | 날짜 | 달 | 요일 | 사용자 | 명령 |
1 2 3 4 5 program
1 : minute (0-59),
2 : hour (0-23),
3 : day of the month (1-31),
4 : month of the year (1-12),
5 : day of the week (0-6 with 0=Sunday).
''*'' : everytime
''-'' : 범위 지정, 1-5이면 1시와 5시 사이
'','' : 분리자, 시간으로 예를 들면 1,3이면 1시와 3시
/ : 시간에서 20-9/3이라면 20시부터 09시까지 매 3시간마다라는 뜻



추가정보
참고문서 :
http://jangjeonghun.tistory.com/201