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ファイルが文字で終わっていることを確認してください。

おすすめ記事