View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Support us on Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - Cron - ProjeQtOr
 
 

Cron

More
15 Mar 2013 14:16 #1 by imenkolsi
Cron was created by imenkolsi
Hi again,

This time i'm asking you about how to make the cron works you already have this functionality in the admin section

and the cron in files/cron/index.php

I have a script that i needed to be executed every 24 hours

could you help me or tell me the steps to make it work

thanks in advance

Please Log in or Create an account to join the conversation.

More
15 Mar 2013 18:03 #2 by babynus
Replied by babynus on topic Re: Cron
Hi,

Cron script is not designed to include self scripts.
You must extend cron script to get you own.
It is not /cron/index.php
It is /model/Cron.php
Have a look at run() method, it runs two functions : checkDates() and checkImport()

Babynus
Administrator of ProjeQtOr web site

Please Log in or Create an account to join the conversation.

More
15 Mar 2013 18:08 #3 by imenkolsi
Replied by imenkolsi on topic Re: Cron
where are the function that your are talking about because in file/cron/index.php it doesn't have anything

Please Log in or Create an account to join the conversation.

More
15 Mar 2013 18:15 #4 by babynus
Replied by babynus on topic Re: Cron

It is /model/Cron.php


Babynus
Administrator of ProjeQtOr web site

Please Log in or Create an account to join the conversation.

More
15 Mar 2013 19:27 #5 by imenkolsi
Replied by imenkolsi on topic Re: Cron
So if i did understand correctly the model/cron.php will execute the script that i would declare in the files/cron/index.php this way:

<?php
header('Location: ...////link to my script ');


is this correct ?

Please Log in or Create an account to join the conversation.

More
16 Mar 2013 00:15 - 16 Mar 2013 00:17 #6 by babynus
Replied by babynus on topic Re: Cron
Not at all :S

You have to develop your own code to adapt /model/Cron.php
There is nothing automatic.

I don't know where you got the idea to put some parameter in index.php : it is a defaut page to assure that even if your apache configuration is wrong, no direct web acces to the folder is allowed.

Babynus
Administrator of ProjeQtOr web site
Last edit: 16 Mar 2013 00:17 by babynus.

Please Log in or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.038 seconds

Cookies settings

×

Functional Cookies

Ce site utilise des cookies pour assurer son bon fonctionnement et ne peuvent pas être désactivés de nos systèmes. Nous ne les utilisons pas à des fins publicitaires. Si ces cookies sont bloqués, certaines parties du site ne pourront pas fonctionner.

Session

Please login to see yours activities!

Other cookies

Ce site web utilise un certain nombre de cookies pour gérer, par exemple, les sessions utilisateurs.