修改目录crontab查找crontab文件?

时间:2014-01-06 02:39:35

标签: linux cron centos crontab

我在/ etc / crontab上有一个crontab文件。我没有把它放在那里,它已经存在,以及/ etc中的许多其他文件。但是,当我键入命令crontab -e时,它会创建一个新文件。我希望它在/ etc中查找crontab。这是我输入crontab -e时命令行所说的内容。

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

完成编辑后,这就是我最终的结果。有什么想法吗?

[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? 

crontab文件的内容:

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

谢谢,我很感激。我希望有更多关于自定义crontab的信息。

0 个答案:

没有答案