Trouble setting cron jobs

Discussion forum about Anuko Time Tracker
Post Reply
bphillips
Posts: 9
Joined: Tue Jan 31, 2017 1:18 am

Trouble setting cron jobs

Post by bphillips » Thu Feb 09, 2017 2:37 am

I'll admit upfront, I'm not great with cron jobs.

I have my notifications set to send me a report. I have the cron schedule in the notification setting set at:
Untitled.jpg
Untitled.jpg (17.9 KiB) Viewed 986 times
I think this means it will send the report at 7:33pm on the 8th of every month, correct?

On my server cron settings I have the following:
# timetracker ping to execute scheduled jobs
MAILTO=""
* * * * * root /usr/bin/php /home/username/public_html/ap/timetracker/cron.php
My Time Tracker installation is at /home/username/public_html/ap/

My server does have the correct time set.

Any idea what I'm doing wrong?

Thanks!

wrc
Posts: 237
Joined: Tue May 25, 2010 8:30 pm

Re: Trouble setting cron jobs

Post by wrc » Fri Jul 07, 2017 10:12 pm

You have not told us what the problem is. Is the problem that reports never arrive, or arrive at the wrong time, or what?
bphillips wrote:I think this means it will send the report at 7:33pm on the 8th of every month, correct?
Correct.
bphillips wrote: On my server cron settings I have the following:
# timetracker ping to execute scheduled jobs
MAILTO=""
* * * * * root /usr/bin/php /home/username/public_html/ap/timetracker/cron.php
My Time Tracker installation is at /home/username/public_html/ap/
Why calling cron.php every minute when you need reports only monthly? This is not an error, just a resource abuse.

Do you see any errors in server logs?

What happens when you access the cron.php page via browser? Do reports that are due get sent?

Post Reply