Execute An Url Of An Addon Using A Scheduled Task Or Cron Job

Hello , I need to execute [color=#C7254E][font=Menlo, Monaco, Consolas,]https://peridomicili…v_import_cambio [/font][/color] in a cron job or Scheduled Task but I don´t know how can I do it.



I try this :[list]

[][color=#C7254E]curl 'Panel de administración

[
][color=#C7254E]wget [/color]http://peridomicilio…v_import_cambio

[/list]

[center]

This are the email message of the cron job:



1-The firts cron job:



% Total % Received % Xferd Average Speed Time Time Time Current

Dload Upload Total Spent Left Speed



0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0

0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0

0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0[/center]



[center]2-The second cron job:[/center]

[center]–2015-04-30 09:02:03-- http://peridomicilio…v_import_cambio[/center]

[center]Resolving peridomicilio.com… 166.63.0.205 Connecting to peridomicilio.com|166.63.0.205|:80… connected.[/center]

[center]HTTP request sent, awaiting response… 302 Moved Temporarily[/center]

You should make availability of script by external source. Now, your script is protected by admin panel access and when server try to perform script it is redirected to Panel de administración



I hope it makes sense.

Please check how it is realized in the built-in Data Feeds module:



app\addons\data_feeds\schemas\permissions\trusted_controllers.post.php

Thanks, I am going to try that.