Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

prakash2raj's avatar

How to get rid of calling Schedule:work command everytime from Cpanel

I am running a laravel project on shared cpanel and I have some automation work. So I am using a artisan command Schedule:wor command via terminal but this is painful after every 8-10 hours I need to run this command again and again. if I don't re-run this command via my cpanel terminal it stops working. How can I get rid of this by running it every time?

I did try also cron job and used this command to run * * * * * cd /path-to-your-project && php artisan schedule:run >> /dev/null 2>&1 but didn't seems working.

0 likes
2 replies
prakash2raj's avatar

@RayC Thanks for your reply, but I'm still testing it didn't see its working, and yes I have changed my path

Please or to participate in this conversation.