Daily run of several blank applications - Best practice to apply

Dear all,

I have to daily run a series of import applications from an external db server.
I developed one for each type and a blank “all_imports” that run them in sequence.
I set also Log access on active .

all_imports:

sc_redir(Import_Customer,"_parent");
sc_redir(Import_Suppliers,"_parent");
sc_redir(Import_Categories,"_parent");
sc_redir(Import_Products,"_parent");
sc_redir(Import_Orders,"_parent");
sc_redir(Import_Orders_Details,"_parent");
sc_redir(Import_PriceList,"_parent");
sc(exit);

Which is the best way to run “all_import” once a day and in case of error what to do on code ?

  1. Crontab
  2. http://www.phpjobscheduler.co.uk/
  3. http://fat-controller.sourceforge.net/

Many thanks

your answer is… CRON… you’ll have to create a CRON script if you use linux or a scheduled task in windows to run the php command with the parameter of the main blank app name. for example (for windows)


run C:\program files(x86)\php\php.exe <route to all_import>\index.php

```php


you might want to create a batch file which runs the php code and returns the error code so you can verify is there's been any error.

Regards

Thanks Kafecadm.

Do you think that if I will use a hosting service it will do that ? I have to check on Cpanel that kind of service.
Bye

All the hosting offer such service… first try it in your computer so you get an idea of how the cron service would be. if you have cpanel then I assure you… You have a cron util around.

Regards