Modify directory crontab looks in for crontab file?

有些话、适合烂在心里 提交于 2019-12-24 21:50:59

问题


I have a crontab file at /etc/crontab. I didn't place it there, it was already there, along with a lot of other files in /etc. However, when I type the command crontab -e, it creates a new file. I want it to look for crontab in /etc. This is what the command line says when I type crontab -e.

no crontab for root - using an empty one
~
~
~
~
~
"/tmp/crontab.vx7AxR" 0L, 0C

After a complete edit, this is what I end up with. Any ideas?

[root@server ~]# crontab -e
no crontab for root - using an empty one
crontab: installing new crontab
"/tmp/crontab.uJzKS0":1: bad day-of-month
errors in crontab file, can't install.
Do you want to retry the same edit? 

Contents of the crontab file:

0 * * * * /var/www/html/myfile.py

Thanks, I appreciate it. I wish there was more info out there about customizing crontab.

来源:https://stackoverflow.com/questions/20942074/modify-directory-crontab-looks-in-for-crontab-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!