We know how to setup a cron using the config.xml crontab:
* * * * *
But what if we want to set up cron_expr value in the backend like other system configuration. The solution is simple. It involves some xml files. (config.xml and system.xml). config.xml:
#config.xml 0.1.0 Company_Export_Model */5 * * * * export/order/cron_settings company_export/observer::exportOrderData
system.xml:
9999 feedsconfig text 1000 1 1 1 text 40 use Crontab Format (Eg. "*/5 * * * *" for every 5 minutes) 1 1 1
I hope this tutorial will help you in the future project.