Openshift的Cron不起作用

时间:2014-02-07 19:08:54

标签: php cron openshift

我有以下名为chronograph.sh的脚本:

#!/bin/bash
php -f coins.php > chrono.dat
<{1}}中的

权限:

jobs.allow

并且cron的服务以此命令开始: ctl_app 启动cron并且结果如下:

#  Script or job files listed in here (one entry per line) will be
#  executed on a weekly-basis.
#
#  Example: The chronograph script will be executed weekly but the README 
#           and chrono.dat files in this directory will be ignored.
#
#           The README file is actually ignored due to the entry in the
#           jobs.deny which is checked before jobs.allow (this file).
#
chronograph.sh

但是,脚本永远不会执行。如果我直接在命令行上运行脚本,这可以很好地工作但不能让它以自动方式运行。一些许可问题?

1 个答案:

答案 0 :(得分:0)