There are lots of tutorials/manuals/forums for setting up a cron in Magento. I even asked a question (here) before, which philwinkle answered perfectly.
However there is one thing that I still could not get to know. Can anyone throw some light?
I've set up the order export cron as bellow in etc/config.xml of my module.
Step -1
<crontab>
<jobs>
<order_export_observer>
<schedule><cron_expr>0 0 * * *</cron_expr></schedule>
<run><model>orderExport/observer::check</model></run>
</order_export_observer>
...
</jobs>
...
</crontab>
With the above settings, this would export a CSV file in the proper format once a night (at midnight) I think.
Step-2
I've created a cron in the Nexcess
1/55 * * * * /usr/bin/php -f /home/html/www.example.com/html/cron.php
This will run after every 55 mins.
Now the actual Problem:
I had to supply cron expression for both in config.xml and in Nexcess Control Panel with 0 0 * * * and 1/55 * * * * respectively. Which expression Magento will take into account? Only one or both? And how the order export will be scheduled? I hope I have been able to describe the problem.