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.

    评论

报告相同问题?

悬赏问题

  • ¥20 双层网络上信息-疾病传播
  • ¥50 paddlepaddle pinn
  • ¥20 idea运行测试代码报错问题
  • ¥15 网络监控:网络故障告警通知
  • ¥15 django项目运行报编码错误
  • ¥15 请问这个是什么意思?
  • ¥15 STM32驱动继电器
  • ¥15 Windows server update services
  • ¥15 关于#c语言#的问题:我现在在做一个墨水屏设计,2.9英寸的小屏怎么换4.2英寸大屏
  • ¥15 模糊pid与pid仿真结果几乎一样