2015-02-27, 10:16 AM
(My apologies if this is posted in not the best section - feel free to move.)
Am trying to get a task run from a Cron job.
The task and fucntionality works absolutely fine if I either run it manually from my ACP Task manager - or if I set it up as a schedule and fire it by surfing around the forums.
However, I need this task to be run at a particular day/time on a week by week basis. Since my forums don't have a lot of traffic, I don't really want to leave it set as a MyBB schedule since if no users visit my forums, it wont run at the time I need it do.
Hence why I need to run it using Cron.
I have disabled the schedule of the task but for the life of me simply cant get it to run from a Cron job.
(I know Cron works as I can perform a simple email to be fired off at regular intervals)
The task ID is 22 and the command I am using is:
* * * * * /usr/bin/php5 /htdocs/forums/task.php 22
(Whilst testing I have set the schedule interval for every minute - this will be changed when I confirm it works)
I dont see any error messages produced but nothing is every received.
Am I doing something totally stupid here.
Would really appreciate anybody giving me a clue as its making me very grey !
Am trying to get a task run from a Cron job.
The task and fucntionality works absolutely fine if I either run it manually from my ACP Task manager - or if I set it up as a schedule and fire it by surfing around the forums.
However, I need this task to be run at a particular day/time on a week by week basis. Since my forums don't have a lot of traffic, I don't really want to leave it set as a MyBB schedule since if no users visit my forums, it wont run at the time I need it do.
Hence why I need to run it using Cron.
I have disabled the schedule of the task but for the life of me simply cant get it to run from a Cron job.
(I know Cron works as I can perform a simple email to be fired off at regular intervals)
The task ID is 22 and the command I am using is:
* * * * * /usr/bin/php5 /htdocs/forums/task.php 22
(Whilst testing I have set the schedule interval for every minute - this will be changed when I confirm it works)
I dont see any error messages produced but nothing is every received.
Am I doing something totally stupid here.
Would really appreciate anybody giving me a clue as its making me very grey !