Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

what is the script for cron job? 
 
bradsugar
Jr. Member
 
Total Posts:  28
Joined:  2008-08-16
 

hi

i am going to set up cron job

i have read http://www.magentocommerce.com/wiki/how_to/how_to_setup_a_cron_job

but what script i need to put in my cron.php to check my price rules? may be i am too slow to understand the above documentation...please help or share what you have done…

 
Magento Community Magento Community
Magento Community
Magento Community
 
Discovery
Enthusiast
 
Total Posts:  767
Joined:  2007-12-29
 

As root try:

crontab -u apache -e

This will open an editor for the webserver’s crontab, the commands entered here will be done with user apache. If you are new to the ‘vi’ editor then just press ‘i’ to enter insert mode, then type these lines:

MAILTO=sales@yourstore.com
*/* * * *  /usr/bin/php -/var/www/html/cron.php
Press escape to leave insert mode, then type ‘:wq’ to save and write the crontab entry.

Now the cron.php file should do what you need it to do regarding price rules, generating the sitemap and anything else you have configured with those overly tricky instructions tongue laugh

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top