drux41001 2010-06-01 10:43
浏览 49

在localhost上运行CodeIgniter cron

I'm trying to get a cron job to run every 5 min on my localhost. Using the Cronnix app I entered the following command

0,5 * * * * root curl http://localhost:8888/site/  > /dev/null

The script runs fine when I visit http://localhost:8888/site/ in my browser. I've read some stuff about getting CI to run on Cron, using wget and various other options but none make a lot of sense.

In another SO post I found the following command

wget -O - -q -t 1 http://www.example.com/cron/run

What is the "-O - -q -t 1" syntax exactly?

Are there other options?

  • 写回答

3条回答 默认 最新

  • dousi6192 2010-06-01 10:52
    关注

    I realize that this is a reference to Drupal, however they do a very nice job of explaining what each and every parameter is in the wget call.

    Drupal Cron Explanation

    If you want the more generic explanation, you can find it here.

    评论

报告相同问题?

悬赏问题

  • ¥30 Unity接入微信SDK 无法开启摄像头
  • ¥20 有偿 写代码 要用特定的软件anaconda 里的jvpyter 用python3写
  • ¥20 cad图纸,chx-3六轴码垛机器人
  • ¥15 移动摄像头专网需要解vlan
  • ¥20 access多表提取相同字段数据并合并
  • ¥20 基于MSP430f5529的MPU6050驱动,求出欧拉角
  • ¥20 Java-Oj-桌布的计算
  • ¥15 powerbuilder中的datawindow数据整合到新的DataWindow
  • ¥20 有人知道这种图怎么画吗?
  • ¥15 pyqt6如何引用qrc文件加载里面的的资源