storing crontab php outputs in a log file
Posted
by vick
on Stack Overflow
See other posts from Stack Overflow
or by vick
Published on 2010-05-03T01:36:37Z
Indexed on
2010/05/03
1:48 UTC
Read the original article
Hit count: 242
* * * * * php /home/admin/public_html/domain.com/public/cron/route.php &>> /home/admin/public_html/domain.com/log/cron.log
I have that cron running every minute.
I want to store the errors that occur in route.php in cron.log
This works wonderfully when I run :
php /home/admin/public_html/domain.com/public/cron/route.php &>> /home/admin/public_html/domain.com/log/cron.log
through the command line manually. But when crontab runs it no errors gets stored in cron.log
the cron.log is owned by admin:admin and the permissions are set to 777 just to be sure.
anyone?
© Stack Overflow or respective owner