如何设置Cron作业? [英] How to set up a Cron job?

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

问题描述

我想尝试按 http://www.fusioninvoice.com上的说明设置周期性发票/ support / recurring-invoices ,但我不明白,不知道该怎么做。



我找到了一个字母数字'key',但不确定

解决方案



如果系统上有curl,您可以安排它ping该URL。
使用crontab -e编辑cron表并创建一个新条目。

  0 0 * * * / usr / bin / curl  - silent http://your-server.com/index.php/invoices/cron/recur/your-cron-key-here&> / dev / null 


I am trying to set up Recurring Invoices as documented on http://www.fusioninvoice.com/support/recurring-invoices but I don't understand and cant work out what to do.

I have found a alphanumeric 'key' but not sure where or what to do?

Do I need to createa file or something?

解决方案

If curl is available on your system, you can schedule it to ping the URL. Use crontab -e to edit the cron table and create a new entry. For example, this will ping the URL every day at midnight.

0 0 * * *  /usr/bin/curl --silent http://your-server.com/index.php/invoices/cron/recur/your-cron-key-here &>/dev/null

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

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