OXID Community Forum

> International Forums > Developers > How to register a cron jon in module?
Login
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Thread: How to register a cron jon in module?


Reply
 
Thread Tools Search this Thread Display Modes
#Top   #1  
Old 06-12-2017, 09:45 AM
kRaath kRaath is offline
Junior Member
Join Date: Jun 2017
Posts: 8
kRaath is on a distinguished road
Default How to register a cron jon in module?

Hi, Currently i am developing a module. Which fetch products reviews from eKomi System. And display on oxid shop product page.
I need to set a cron job in oxid while installing a module. Which run after every 24 hrs.
How can i do this? Any help would be appreciated.
Reply With Quote
#Top   #2  
Old 06-12-2017, 09:54 AM
Marco Steinhaeuser's Avatar
Marco Steinhaeuser Marco Steinhaeuser is online now
Community Manager @OXID
Join Date: Oct 2008
Posts: 12,661
Marco Steinhaeuser is on a distinguished road
Default Re: How to register a cron jon in module?

Hi and welcome to the forums,

a cron job is not necessarily done within the application. I would always use cron within a UNIX system to do such tasks. Found a pretty cool manual here, for example: http://kvz.io/blog/2007/07/29/schedu...using-crontab/

Regards
__________________
Marco
http://oxidforge.org
http://about.me/marco.steinhaeuser

Will ignore unsolicited support requests via PM, email or IM.
Reply With Quote
#Top   #3  
Old 06-12-2017, 10:37 AM
vanilla thunder's Avatar
vanilla thunder vanilla thunder is online now
Marco's Sidekick
Join Date: Nov 2010
Posts: 6,358
vanilla thunder is on a distinguished road
Default Re: How to register a cron jon in module?

before you start, ask eKomi if you are allowed to do what you want to do.
Their terms of usage clearly say, that you do not own the reviews and they give you licence to use widget and seal, not the reviews itself.
Reply With Quote
#Top   #4  
Old 06-16-2017, 10:38 AM
kRaath kRaath is offline
Junior Member
Join Date: Jun 2017
Posts: 8
kRaath is on a distinguished road
Default Re: How to register a cron jon in module?

I am developer in ekomi. So i am creating this plugin/module for eKomi.
Reply With Quote
#Top   #5  
Old 06-16-2017, 01:51 PM
kRaath kRaath is offline
Junior Member
Join Date: Jun 2017
Posts: 8
kRaath is on a distinguished road
Default Re: How to register a cron jon in module?

My module requirement is to create cron job on the activate of the module.
Is this possible?
Reply With Quote
#Top   #6  
Old 06-16-2017, 07:18 PM
Marco Steinhaeuser's Avatar
Marco Steinhaeuser Marco Steinhaeuser is online now
Community Manager @OXID
Join Date: Oct 2008
Posts: 12,661
Marco Steinhaeuser is on a distinguished road
Default AW: How to register a cron jon in module?

Not possible IMO. Given that you want to use UNIX cron of the system, the application cannot trigger anything outside the doc root of your web server.
__________________
Marco
http://oxidforge.org
http://about.me/marco.steinhaeuser

Will ignore unsolicited support requests via PM, email or IM.
Reply With Quote
#Top   #7  
Old 06-17-2017, 03:43 PM
vanilla thunder's Avatar
vanilla thunder vanilla thunder is online now
Marco's Sidekick
Join Date: Nov 2010
Posts: 6,358
vanilla thunder is on a distinguished road
Default Re: How to register a cron jon in module?

you could let your function for displaying reviews in frontend do the job insteread of cron.
Reply With Quote
Reply

Bookmarks

Tags
cron, cron job, jon, module, register

« Previous Thread | Next Thread »
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Nicht Sichtbar
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Prozess mittels cron-Job aktivieren Paperless Administration 1 09-26-2016 10:09 PM
Versandkosten eines Artikels [im Cron] ermitteln indianer3c Newbies 8 05-30-2014 02:51 PM
CE 4.7 - cron.php - Fatal Error -> Cannot redeclare isAdmin() gewend Bug-Verdacht 2 12-04-2012 09:48 AM
cron und automatisierte Aufrufe f-i-s Installation und Konfiguration 13 03-21-2012 04:35 PM
Cron in oxid 4.5.4 hardikbadani Developers 5 12-29-2011 01:13 PM

All times are GMT +1. The time now is 02:32 PM.