SMF Shop

SMFShop => General SMFShop Discussion => Topic started by: YamiKaitou on December 12, 2006, 02:59:11 pm

Title: Cron Error
Post by: YamiKaitou 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
Title: Re: Cron Error
Post by: Daniel15 on December 13, 2006, 12:26:26 pm
Try uploading a blank file to fourms/interest_log.htm, and try again.
Title: Re: Cron Error
Post by: YamiKaitou 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
Title: Re: Cron Error
Post by: Daniel15 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
Title: Re: Cron Error
Post by: YamiKaitou on December 18, 2006, 02:10:50 pm
Okay, that worked. Thanks