expert on cronjob settings wanted

twindesign

New member
Joined
Jan 10, 2011
Messages
4
Hi,

I have this website for witch I have cron jobs installed by my programmer. It worked fine on his server but now we set it on the server of our client using directadmin, it just wont work anymore. It does not send the automatic emails out anymore.

Is there a directadmin specialist around here who can logikn to our files and see what we are doing wrong? Maybe also look at the original php coding or whatever? My developer is Indonesian and he is a suburb developer but he just can't get it working with directadmin. Or if it is easy, show me where I can set the email address for getting error reports on cron jobs.

Thanks,

Patrick
 
Is your cron system running?

/sbin/service crond restart

cat /var/log/cron
 
I will ask my webbuilder to reply

Hi, thanks a lot for the quick responses! I will ask my webbuilder to look at your comments and give the info asked for., many thanks already!:)
 
Hi,

here is the code :
/usr/local/bin/php /home/professi/domains/professionalboatcare.nl/public_html/pbc-offerte/automatic.php

And the cron system run the script well, because we can see the log file that generate by the script ( automatic.php ) updated successfully : http://professionalboatcare.nl/pbc-offerte/log.txt

However the next task in the code doesn't run successfully , in other mean there is an issue on the php script. If we called the script directly through browser : http://professionalboatcare.nl/pbc-offerte/automatic.php
We can't found what was the problem exactly. So we need the cron system send the cron process report to our email. And another problem is we never got any report from cron system, even though we already set email address to our email though CMD_USER_STATS page.

Is there another page in directadmin system that spesificaly manage the email address for cron system reporting?

I greatly appreciate for your help. THanks!

Cheers
 
do you have accesso to ssh? had you try to add the cron in /etc/crontab and setup like this

0 * * * * professi /usr/local/bin/php /home/professi/domains/professionalboatcare.nl/public_html/pbc-offerte/automatic.php > MAILTO="[email protected]"

?
 
All reports from cron/mail-system come into default email box, that is created on account creating. Note if your script outputs nothing, and no errors occur, you won't get any report from that cron-task.

Check your [email protected]

P.S. Why don't you run the task with wget? Perhaps, your script could not be run from console.
 
done

Hi guys, many thanks for your help. Don't know what was usefull for my webbuilder but he fixed it. Many many thanks for your help!!!
 
Back
Top