Author Topic: Cron Error  (Read 2564 times)

Offline YamiKaitou

Cron Error
« on: December 12, 2006, 02:59:11 pm »
I have everything set up correctly for the bank interest and I have it set to email the main account and this is what the email contains

Subject: Cron <yamik@ciroc> /usr/bin/php -q /home/yamik/public_html/forums/Sources/shop/dointerest.php > /home/yamik/public_html/fourms/interest_log.htm
Body: /bin/sh: /home/yamik/public_html/fourms/interest_log.htm: No such file or directory

Offline Daniel15

Re: Cron Error
« Reply #1 on: December 13, 2006, 12:26:26 pm »
Try uploading a blank file to fourms/interest_log.htm, and try again.

Offline YamiKaitou

Re: Cron Error
« Reply #2 on: December 15, 2006, 02:06:18 pm »
Nope, same email. The file does exist in the correct place. Maybe the file permissions? It was set to 644, just changed it to 755, will have to wait 23 hours before it attempts it again

Offline Daniel15

Re: Cron Error
« Reply #3 on: December 16, 2006, 08:08:28 pm »
Try getting rid of the file output completely.
Code: [Select]
/usr/bin/php -q /home/yamik/public_html/forums/Sources/shop/dointerest.php
Then, instead of writing it to a file, it will email you the output. Once you've ensured it works fine, you can discard the output completely:
Code: [Select]
/usr/bin/php -q /home/yamik/public_html/forums/Sources/shop/dointerest.php > /dev/null

Offline YamiKaitou

Re: Cron Error
« Reply #4 on: December 18, 2006, 02:10:50 pm »
Okay, that worked. Thanks