peppeocchi / php-cron-scheduler

PHP cron job scheduler
MIT License
808 stars 143 forks source link

cannot output log file #127

Closed ginoking closed 3 years ago

ginoking commented 3 years ago

When I use command line to execute the script, it will output log file. But when I use crontab to execute scheduler.php and want to output, it can't output log...... This is my code $scheduler->php(dirname(__FILE__).'/test/test.php')->everyMinute()->output('log/crontab.log', true); Am I wrong?

ginoking commented 3 years ago

I find the solution! put absolute path into output can make it right.

Thanks!