【发布时间】:2016-01-21 08:23:43
【问题描述】:
我想将我的cron.txt 推送到 crontab 使用类似的东西:
crontab cron.txt
我的 cron.txt 文件的内容是:
# Format : minute | hour | day-of-month | month | day-of-week | path-to-script
0 1600 * * 4 C:/path/to/myscript.php
我收到错误:
"cron.txt":4: bad hour
如何正确运行脚本?只需要时间和php文件的路径吗?
谢谢。
【问题讨论】:
-
你想在每个星期四下午 4 点运行它吗?
-
好的,所以我刚刚意识到小时应该是
16而不是1600。但是脚本路径呢? -
我猜 1600 小时是无效的。我不确定
-
@Darren - 是的,差不多。
标签: php cron cygwin crontab cron-task