
下記コマンドを毎日20時に実行してログとして保存するため
cronへの登録をおこなっているのですが、登録ができない状況です。
postqueue -p >`date "+%F"`-test.txt
crontab -eを行い
* 20 * * * * root postqueue -p > /usr/local/testdir01/`date "+%F"`-test.txt
と記載した後、:wqで保存すると、以下の様になってしまいます。
no crontab for root - using an empty one crontab: installing new crontab "/tmp/crontab.IqSHlt":1: bad command errors in crontab file, can't install. Do you want to retry the same edit? n crontab: edits left in /tmp/crontab.IqSHlt
どなたかお教えください。

回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
退会済みユーザー
2018/12/08 06:19