How to set up a Cron job?

感情迁移 提交于 2020-01-06 18:13:44

问题


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?


回答1:


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


来源:https://stackoverflow.com/questions/15274912/how-to-set-up-a-cron-job

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!