Support the ongoing development of Laravel.io →
posted 10 years ago
Architecture

Help Paste: http://help.laravel.io/3db0611b1ee9ef70d9e12480f6b3f9b41f8cdd11

My Problem: Hello, I created new Artisan command and I registered in app/start/artisan.php. When I run in SSH, its okey. But when I use with CRON JOBS its return this error: There are no commands defined in the "bot" namespace.

Error: [InvalidArgumentException]
There are no commands defined in the "bot" namespace.

My Cron Job: php -f /home/temeltr/artisan bot:haber7

Last updated 2 years ago.
0

My problem fixed. I changed cron job to

cd /home/temeltr && /usr/bin/php5-cli artisan bot:haber7

Last updated 2 years ago.
0

Thank you man! you gave end to a horrible week looking for the problem!

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

erayaydin erayaydin Joined 1 May 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.