使用Webmin设置cron作业 [英] Setting up a cron job with Webmin

查看:153
本文介绍了使用Webmin设置cron作业的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图使用Webmin设置一个Cron作业,每5分钟运行一次。它需要定位一个.php文件并在该文件中运行php脚本。当我在命令字段中输入文件的路径时,它不工作。我只是想知道我做错了什么,我在哪里放置我需要Cron作业的文件路径。

I am trying to setup a Cron job using Webmin to run every 5 min. It needs to target a .php file and run the php script in that file. When I enter the path to the file in the "Command" field, it doesn't work. I am just wondering what I am doing wrong, and where do I put the file path that I need the Cron job to run.

谢谢!

推荐答案


  1. 系统 - 计划的Cron作业

  2. 单击创建新的计划cron作业

  3. 在命令框中输入/ usr / bin / php -q /var/www/path/to/your_php_script.php

  4. 点击下面选择的时间和日期..单选按钮

  5. 分钟部分

  6. 选择0,5,10,15,20,25,30,35,40,45,50,55 (使用控制键),然后点击保存按钮

  1. System -> Scheduled Cron Jobs
  2. Click Create a new scheduled cron job.
  3. In Command box enter /usr/bin/php -q /var/www/path/to/your_php_script.php
  4. Click "Times and dates selected below .." radio button
  5. Click "Selected.." under Minutes section
  6. Select 0, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55 (use control key) and click 'Save' button.

这篇关于使用Webmin设置cron作业的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆