每天早上5点到晚上,每隔30分钟运行一次

时间:2015-12-28 22:12:11

标签: php nginx cron centos crontab

我能够在一些帮助下生成这个指令 因为我不是任何方式的专家。

我期望它做的是:
从每30分钟运行一次 每天凌晨5点到午夜,

    <div class="text-info" ng-controller="ClassListController">
<h3> Text from Controller: </h3>

@*table*@
<table class="table table-striped table-bordered">
    <thead>
        <tr><th>DisplayName</th><th>Value</th>
    </thead>
    <tbody>
        <tr ng-hide="classList.length">
            <td colspan="3" class="text-center">No Data</td>
        </tr>
        <tr ng-repeat="item in classList">
            <td>{{item.Text}}</td>
            <td>{{item.Value}}</td>

        </tr>
    </tbody>
</table>

即使它是正确的,这是正确的语法吗?或者没关系 因为我之前没有见过“,”只是“/”

1 个答案:

答案 0 :(得分:0)

您的语法正确,但它也会在00:30运行。如果您不想要,则需要两个条目。

0,30 5-23 * * * /path_to_script
0 0 * * * /path_to_script