PHP sendDiaryMail의 Crontab 오류

PHP sendDiaryMail의 Crontab 오류

나는 추가한다

30 22 * * * php /www/wwwroot/easy_xyz/xcat sendDiaryMail

내 라인에서는 crontab -e다음과 같습니다 .

30 22 * * * php /www/wwwroot/easy_xyz/xcat sendDiaryMail
55 0 * * * "/root/.acme.sh"/acme.sh --cron --home "/root/.acme.sh" > /dev/null

하지만 오류가 발생했습니다.

crontab: installing new crontab
"/tmp/crontab.d7MGaW":1: bad minute
errors in crontab file, can't install.
Do you want to retry the same edit?

무엇이 문제인지 찾을 수 없습니다.

답변1

crontab파일이 문자로 끝나는지 확인하세요 .

답변2

다음을 시도해 보십시오:

30 20 * * * /usr/bin/php /www/wwwroot/easy_xyz/xcat sendDiaryMail

관련 정보