You are here:  » Importing ALL from script

Support Forum



Importing ALL from script

Submitted by temple3188 on Tue, 2010-04-06 14:45 in

Hi David,

Hope you had a nice Easter break,

I have a small query you'll probably be able to answer off the top of your head,

Using your User Manual I now have everything importing automatically through Cron Jobs, at the minute I have a custom script that downloads updated feeds and then I set the import.php @ALL Cron to run a few hours after this.

I was wondering if there was some way of calling the import command from my custom script i.e. when all of the new feeds have been downloaded and extracted I can call the importing feature to import all of the feeds from my PHP script.

Is this possible?

Cheers,

Chris

Submitted by support on Tue, 2010-04-06 15:05

Hi Chris,

Sure - you can either simply add the lines to run import.php to the end of your last fetch script; alternatively you can chain commands in one cron job by separating them with a semi-colon; for example:

/path/to/fetch_script.sh;/usr/bin/php /path/to/import.php @ALL

Cheers,
David.