Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

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

 

Posted 30 April 2015 - 03:03 PM #1

Hello , I need to execute https://peridomicili...v_import_cambio in a cron job or Scheduled Task but I don´t know how can I do it.

I try this :


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


2-The second cron job:

--2015-04-30 09:02:03-- http://peridomicilio...v_import_cambio

Resolving peridomicilio.com... 166.63.0.205 Connecting to peridomicilio.com|166.63.0.205|:80... connected.

HTTP request sent, awaiting response... 302 Moved Temporarily



 
  • Cart-Power
  • Senior Member
  • Authorized Reseller
  • Join Date: 12-May 14
  • 1621 posts

Posted 30 April 2015 - 03:24 PM #2

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 https://peridomicili...v_import_cambio

I hope it makes sense.
Cart-Power.com / Cart-Power.ru (sales@cart-power.com) offers you:
CS-Cart add-ons :: CS-Cart themes :: CS-Cart development :: CS-Cart license
Работаем с англоязычными и русскоязычными клиентами (work with English-speaking and Russian-speaking customers)

 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19486 posts

Posted 30 April 2015 - 03:37 PM #3

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

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

GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 

Posted 30 April 2015 - 07:37 PM #4

Thanks, I am going to try that.