View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Supportez nous sur Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - Cron - ProjeQtOr

Prochaines Sessions

Les prochaines formations et démonstrations sont ouvertes, inscrivez-vous rapidement !

 

Démonstration de ProjeQtOr

(gratuit, sur inscription)
 

27 juin (16h-17h30)

16 juillet (10h-12h30)

22 août (16h-17h30)

12 sept (10h-12h30)

1er oct (16h-17h30)

 
 

Planifiez avec ProjeQtOr

18 et 19 juin (9h - 12h30)

18 et 19 septembre (9h - 12h30)

 
 

Administrez avec ProjeQtOr

25 et 26 juin (9h - 12h30)

25 et 26 juin (9h - 12h30)

 

 

 

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 Connexion 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 Connexion 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 Connexion 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 Connexion 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 Connexion 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 Connexion or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.039 seconds

Paramétrages de cookies

×

Cookies fonctionnels

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

Veuillez vous connecter pour voir vos activités!

Autres cookies

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