crontab中每5分钟时间格式的2种方式

时间:2014-07-11 10:38:06

标签: crontab

美好的一天,

据我所知,有两种方法可以在crontab中每5分钟写一次时间格式。以下是我的例子:

示例1:

*/5 * * * * /path/to/script.sh

示例2:

0,5,10,15,20,25,30,35,40,45,50,55 * * * * /path/to/script.sh

我可以成功使用第二个例子,但是,当我使用示例1时遇到错误: crontab: error on previous line; unexpected character found in line.

实际上不明白是什么原因,假设它应该是正确的。

请告知。

0 个答案:

没有答案