Forums / Developer / Adding cvsimport extension into cronjobs tasks
David Zaoui
Tuesday 10 July 2007 7:09:02 am
Hi,
I've just installed a csv import extension which works quite well, through an interface or the following command line:
./extension/csv/import.php [pattern] [filename].
Now i want to add import.php as a cronjob task.
i added the following lines to cronjob.ini :
[CronjobSettings]ExtensionDirectories[]=csv
[CronjobPart-importagences]Scripts[]=import.php
Obviously it doesn't work, as i don't know how to precise the two arguments ( [pattern] and [filename]) to the cronjob.
i thought changing the import.php file to put directly into it the value of the arguments but i hope there is a better way to proceed...Have you got any idea ?
Lukasz Piech
Tuesday 10 July 2007 7:22:03 am
I have a little dirty workaround for that. But it is the most simple one.
Instead of making eZ do that, let Linux do that !
write it directly into a crontab
i.e.
35 6 * * * cd /path to ez && /path to php/php extension/csv/import.php [pattern] [filename].
Lukasz