There are several recurring processes that need to be automated. Zelerate recommends that you make these entries in the crontab for your web server to make the scripts below run at regular intervals.
Script
|
What It Does
|
generate_site.pl
|
generate_site.pl produces all the output pages for a site. This script places a fresh set of pages in the html/eng/auto/ directory, and then calls a script named update_symlinks that creates references to these pages in the html/eng/ directory.
If you have manual pages in the html/eng/man/ directory and wish to use these pages in your site, you must create pointers to html/eng s update_symlinks links the generated pages. This procedure allows manually created pages to override automatically generated pages.
To automate generate_site and have it run every hour, place the following entry in the crontab for your Web server:
0 * * * * root /home/httpd/os_allcommerce/crons/generate_site.pl
|
revert_carts.pl
|
revert_carts.pl needs to be automated to move reserved inventory out of the shopping cart and place the items back in stock. This script looks for users who have entered checkout, but have not checked out within 15 minutes.
To automate revert_carts and have it run every 15 minutes, make the following entry in the crontab for your Web server:
5/* * * * * root /home/httpd/os_allcommerce/crons/revert_carts.pl
|
run_stats.pl
|
run_stats.pl produces statistic reports which are viewed using the AlLCommerce Statistics manager.
To automate run_stats and have it run everyday at a specific time, make the following entry in the crontab for your Web server:
0 2 * * * root /home/httpd/os_allcommerce/crons/run_stats.pl
|
|