문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판 이전 판 다음 판 | 이전 판 다음 판 양쪽 다음 판 | ||
linux:cron [2018/02/13 15:10] kwon37xi |
linux:cron [2021/12/27 19:30] kwon37xi |
||
---|---|---|---|
줄 1: | 줄 1: | ||
====== cron ====== | ====== cron ====== | ||
+ | * see [[linux: | ||
* [[http:// | * [[http:// | ||
+ | * [[https:// | ||
* [[http:// | * [[http:// | ||
* [[http:// | * [[http:// | ||
+ | * https:// | ||
+ | * | ||
* '' | * '' | ||
export VISUAL=vim | export VISUAL=vim | ||
</ | </ | ||
- | ===== 설정 ===== | + | ===== crontab |
* " | * " | ||
- | * [[https:// | + | * [[https:// |
+ | * [[http:// | ||
+ | * ''/ | ||
* crontab 파일 형식< | * crontab 파일 형식< | ||
------ | ------ | ||
줄 32: | 줄 38: | ||
* 2-10/3와 같이 하이픈(-)으로 시간 범위를 슬래쉬(/ | * 2-10/3와 같이 하이픈(-)으로 시간 범위를 슬래쉬(/ | ||
* '' | * '' | ||
+ | |||
+ | ===== 디렉토리 이동 ===== | ||
+ | * 특정 디렉토리로 이동해서 그곳의 스크립트 수행 | ||
+ | |||
+ | <code sh> | ||
+ | 30 5 * * * cd / | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== ''/ | ||
+ | * ''/ | ||
+ | * 여기 있는 파일들은 실제로 실행할 shell script 들이며, | ||
+ | * 해당 스크립트의 실행 schedule 은 **''/ | ||
+ | |||
+ | ===== ''/ | ||
+ | * ''/ | ||
+ | * 스케줄링과 job 실행할 user 정보까지 지정해야 한다. | ||
+ | * | ||
+ | ===== 참조 ===== | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// |