Hi, Just wonder how the cronjob work , normally I just setup in by using crontab -e , since we can setup in the module now , do we need to add the crontab.php into crontab ?
yup , i read that but i thought we still need to do some manual work in order for the cronjob to run , didn't know it will just insert the cronjob directly to the crontab.
Sorry for the delay in getting back to you. When you say manual work do you mean like changing paths? Basically, it does the same thing you do for setting up crontabs by calling crontab -e etc. There is a Cronjob class (fuel/modules/cronjobs/library/) that is a wrapper around it if you are interested. Does that answer your question?
so far I have some progress on this, will send in a patch later, but now one bigger problem is when the script is run under www-data permission , it can't really perform crontab...
nope i submitted patch for cronjobs, not really related my problem.
Now the problem more like when the script is run under www-data ownership, the cronjobs that created is belong www-data also , just wonder is there way to create the cronjobs under my user acccount or not and what will be the best practice ?
yup I understand how the code work , i send it a patch yesterday for this also , but it doesn't resolve my problem, I wonder is that because the setup of server ? now i just settle to leave all cronjob belong to www-data in stead of my user account.
No one has raised up any other issue at this point but I wouldn't discount it just because of that. Do you have a different server environment that you can try to see if it is the server or if it may be an issue with the code?
Comments
http://www.getfuelcms.com/user_guide/modules/cronjobs
Now the problem more like when the script is run under www-data ownership, the cronjobs that created is belong www-data also , just wonder is there way to create the cronjobs under my user acccount or not and what will be the best practice ?
http://php.net/manual/en/function.exec.php
http://php.net/manual/en/function.shell-exec.php
When we set them up, we have them run under the php user normally.
Just wonder any other user raise up this issue ?