으로 cronjob의 schedular에서 사용하는 일반 구문은 다음과 같습니다 cronjob에의 schedular 사용하는 모든 분야의
# Execute the <b>command</b> every minute of every day.
* * * * * command
설명 : 대신 처음 5 개 개의 필드의
# field # meaning allowed values
# ------- ------------ --------------
# 1 minute 0-59
# 2 hour 0-23
# 3 day of month 1-31
# 4 month 1-12 (or names, see below)
# 5 day of week 0-7 (0 or 7 is Sun, or use names)
, 팔 특수 문자열 중 하나 수 사용할 수 있습니다 :
string meaning
------ -------
@reboot Run once, at startup.
@yearly Run once a year, "0 0 1 1 *".
@annually (same as @yearly)
@monthly Run once a month, "0 0 1 * *".
@weekly Run once a week, "0 0 * * 0".
@daily Run once a day, "0 0 * * *".
@midnight (same as @daily)
@hourly Run once an hour, "0 * * * *".
간격을두고 작업을 반복하려면 /이 사용됩니다
*/15 * * * * command
# This will execute the command after every 15 minutes.
특정 시간 에서 작업을 실행하기 위해, 사용할 수 b : 의심을 지 웁니다
* 2,20 * * * command
# This will execute the job every minute but at the hours 2 AM and 8 PM.
희망.
** 특히'man crontab '에 대해 명확하지 않은 내용이 있으며 간단한 검색으로 설명을 찾지 못하셨습니까? – Olaf