I have this code "TestTask.php":

<?php
class TestTask extends Shell {
    
    function main() {
        $this->out('Hello world.');
    }
    
    function execute() {
        $this->out('Hello world 2.');
    }
}

It's located in: /home/myuser/public_html/app/Console/Command/Task

And then, my cronjob is like this:

* * * * * php /home/myuser/public_html/app/Console/cake.php test -app 
/home/myuser/public_html/app >> /home/myuser/public_html/file.log

The last part it's to log the output in a file.

It doesn't work at all.

Help please!!!

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to