To fix the TERM error wrap the cron job in a shell script with: TERM=linux export TERM
I think you can also set the path to php in the shell script with: PATH=$PATH:/usr/local/bin Alternately you can edit /cake/console/cake and add the full path on line 32. -Matt http://www.pseudocoder.com On Dec 2, 7:30 am, tekomp <[EMAIL PROTECTED]> wrote: > I can run a shell just fine on the command line, but when I run the > same command via cron, I get the following error: > > tput: no terminal type specified and no TERM environmental variable. > /www/example.com/cake/console/cake: line 32: exec: php: not found > > Here is the command I'm running: > > /www/example.com/cake/console/cake -app /www/example.com/app expiring - > days 300 > /dev/null > > Any ideas on getting this to work through cron? > > Thanks. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
