現在「毎日0時にsqlを実行する」を実現したく、
調べたところcronで設定するとあったので設定していたのですが、
cronの設定を保存しようとしたところでエラーが出てしまいます。
記述内容が間違っているのでしょうか??
以下、私が試したことになります。
#crontab -e [00 00 * * * * ./dayly_query.sh] /tmp/crontab.lvC3SW":1: bad command errors in crontab file, can't install. #crontab -l no crontab for root #survice crond status Redirecting to /bin/systemctl status crond.service ● crond.service - Command Scheduler Loaded: loaded (/usr/lib/systemd/system/crond.service; enabled; vendor preset: enabled) Active: active (running) since Mon 2019-01-21 06:29:30 UTC; 1 weeks 3 days ago Main PID: 3342 (crond) CGroup: /system.slice/crond.service mq3342 /usr/sbin/crond -n Jan 21 06:29:30 ip-172-30-2-93.ap-northeast-1.compute.internal systemd[1]: St... Jan 21 06:29:30 ip-172-30-2-93.ap-northeast-1.compute.internal systemd[1]: St... Jan 21 06:29:31 ip-172-30-2-93.ap-northeast-1.compute.internal crond[3342]: (... Jan 21 06:29:31 ip-172-30-2-93.ap-northeast-1.compute.internal crond[3342]: (... Hint: Some lines were ellipsized, use -l to show in full. ``` ./dayly_query.shは直接打ち込むと動作することを確認しております。 足りない内容などございましたら、随時追記しますので、よろしければご教授お願いいたします。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/02/01 05:06
2019/02/01 05:09 編集
2019/02/01 05:19